Skip to content

Commit e8d0b4c

Browse files
authored
stress-test: Improve Node Count verification for work better in clusters (#669) (#670)
1 parent 96e43ea commit e8d0b4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/stress-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ function verifyNodeCount (context) {
449449

450450
const session = context.driver.session()
451451
return session
452-
.readTransaction(tx => tx.run('MATCH (n) RETURN count(n)'))
452+
.writeTransaction(tx => tx.run('MATCH (n) RETURN count(n)'))
453453
.then(result => {
454454
const record = result.records[0]
455455
const count = record.get(0).toNumber()

test/stress.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ describe('#integration stress tests', () => {
449449

450450
const session = context.driver.session()
451451
return session
452-
.readTransaction(tx => tx.run('MATCH (n) RETURN count(n)'))
452+
.writeTransaction(tx => tx.run('MATCH (n) RETURN count(n)'))
453453
.then(result => {
454454
const record = result.records[0]
455455
const count = record.get(0).toNumber()

0 commit comments

Comments
 (0)