Skip to content

Commit 94dbf97

Browse files
Peter Wilhelmsson2hdddg
authored andcommitted
Fixes check on unreachable bookmark error for 4.1
1 parent b51a5bb commit 94dbf97

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/transaction.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,11 @@ describe('#integration transaction', () => {
389389
const tx2 = session2.beginTransaction()
390390
tx2.run('CREATE ()').catch(error => {
391391
const message = error.message
392-
expect(message).toContain('not up to the requested version')
392+
// Checking message text on <= 4.0, check code for >= 4.1
393+
expect(
394+
error.message.includes('not up to the requested version') ||
395+
error.code == 'Neo.ClientError.Transaction.InvalidBookmark'
396+
).toBeTruthy()
393397
done()
394398
})
395399
})

0 commit comments

Comments
 (0)