File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ module.exports = function () {
58
58
this . savedValues = { } ;
59
59
} ) ;
60
60
61
- this . After ( function ( scenario , callback ) {
61
+ this . After ( "~@error_reporting" , function ( scenario , callback ) {
62
62
if ( this . session ) {
63
63
this . session . close ( ) ;
64
64
}
Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ module.exports = function () {
30
30
} ) ;
31
31
32
32
this . When ( / ^ ` r u n ` a q u e r y w i t h t h a t s a m e s e s s i o n w i t h o u t c l o s i n g t h e t r a n s a c t i o n f i r s t $ / , function ( callback ) {
33
- self = this ;
33
+ var self = this ;
34
34
this . session . run ( "CREATE (:n)" ) . then ( function ( result ) { callback ( ) } ) . catch ( function ( err ) { self . error = err ; callback ( ) } )
35
35
} ) ;
36
36
37
37
this . Then ( / ^ i t t h r o w s a ` C l i e n t E x c e p t i o n ` $ / , function ( table ) {
38
- expected = table . rows ( ) [ 0 ] [ 0 ] ;
38
+ var expected = table . rows ( ) [ 0 ] [ 0 ] ;
39
39
if ( this . error === undefined ) {
40
40
throw new Error ( "Exepcted an error but got none." )
41
41
}
@@ -66,6 +66,7 @@ module.exports = function () {
66
66
var driver = neo4j . driver ( "bolt://localhost:7777" , neo4j . auth . basic ( "neo4j" , "neo4j" ) ) ;
67
67
driver . onError = function ( error ) { self . error = error ; callback ( ) } ;
68
68
driver . session ( ) ;
69
+ setTimeout ( callback , 1000 ) ;
69
70
} ) ;
70
71
71
72
this . When ( / ^ I s e t u p a d r i v e r w i t h w r o n g s c h e m e $ / , function ( callback ) {
You can’t perform that action at this time.
0 commit comments