File tree 1 file changed +12
-10
lines changed
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -428,16 +428,18 @@ describe('#integration stress tests', () => {
428
428
const expectedNodeCount = context . createdNodesCount
429
429
430
430
const session = context . driver . session ( )
431
- return session . run ( 'MATCH (n) RETURN count(n)' ) . then ( result => {
432
- const record = result . records [ 0 ]
433
- const count = record . get ( 0 ) . toNumber ( )
434
-
435
- if ( count !== expectedNodeCount ) {
436
- throw new Error (
437
- `Unexpected node count: ${ count } , expected: ${ expectedNodeCount } `
438
- )
439
- }
440
- } )
431
+ return session
432
+ . readTransaction ( tx => tx . run ( 'MATCH (n) RETURN count(n)' ) )
433
+ . then ( result => {
434
+ const record = result . records [ 0 ]
435
+ const count = record . get ( 0 ) . toNumber ( )
436
+
437
+ if ( count !== expectedNodeCount ) {
438
+ throw new Error (
439
+ `Unexpected node count: ${ count } , expected: ${ expectedNodeCount } `
440
+ )
441
+ }
442
+ } )
441
443
}
442
444
443
445
function verifyServers ( context ) {
You can’t perform that action at this time.
0 commit comments