@@ -23,19 +23,22 @@ var Session = require("../../lib/v1/session");
2323
2424describe ( 'session' , function ( ) {
2525
26- var driver , session , server ;
26+ var driver , session , server , originalTimeout ;
2727
2828 beforeEach ( function ( done ) {
2929 driver = neo4j . driver ( "bolt://localhost" , neo4j . auth . basic ( "neo4j" , "neo4j" ) ) ;
3030 driver . onCompleted = function ( meta ) {
3131 server = meta [ 'server' ] ;
3232 } ;
3333 session = driver . session ( ) ;
34+ originalTimeout = jasmine . DEFAULT_TIMEOUT_INTERVAL ;
35+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
3436
3537 session . run ( "MATCH (n) DETACH DELETE n" ) . then ( done ) ;
3638 } ) ;
3739
3840 afterEach ( function ( ) {
41+ jasmine . DEFAULT_TIMEOUT_INTERVAL = originalTimeout ;
3942 driver . close ( ) ;
4043 } ) ;
4144
@@ -177,8 +180,8 @@ describe('session', function () {
177180 session . run ( statement )
178181 . then ( function ( result ) {
179182 var sum = result . summary ;
180- expect ( sum . resultAvailableAfter . toInt ( ) ) . toBeGreaterThan ( 0 ) ;
181- expect ( sum . resultConsumedAfter . toInt ( ) ) . toBeGreaterThan ( 0 ) ;
183+ expect ( sum . resultAvailableAfter . toInt ( ) ) . not . toBeLessThan ( 0 ) ;
184+ expect ( sum . resultConsumedAfter . toInt ( ) ) . not . toBeLessThan ( 0 ) ;
182185 done ( ) ;
183186 } ) ;
184187 } ) ;
@@ -313,8 +316,8 @@ describe('session', function () {
313316 . then ( function ( ignore ) {
314317 done ( ) ;
315318 } ) ;
316- } , 1000 ) ;
317- } , 1500 ) ;
319+ } , 500 ) ;
320+ } , 500 ) ;
318321 } ) ;
319322
320323 it ( 'should fail nicely on unpackable values ' , function ( done ) {
0 commit comments