Skip to content

Commit 90dac27

Browse files
committed
Guard tests that use bookmarks with server version check
1 parent a84ddcf commit 90dac27

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/v1/session.test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,10 @@ describe('session', () => {
572572
});
573573

574574
it('should update last bookmark after every read tx commit', done => {
575+
if (!serverIs31OrLater(done)) {
576+
return;
577+
}
578+
575579
const bookmarkBefore = session.lastBookmark();
576580

577581
const tx = session.beginTransaction();
@@ -592,6 +596,10 @@ describe('session', () => {
592596
});
593597

594598
it('should update last bookmark after every write tx commit', done => {
599+
if (!serverIs31OrLater(done)) {
600+
return;
601+
}
602+
595603
const bookmarkBefore = session.lastBookmark();
596604

597605
const tx = session.beginTransaction();
@@ -608,6 +616,10 @@ describe('session', () => {
608616
});
609617

610618
it('should not lose last bookmark after run', done => {
619+
if (!serverIs31OrLater(done)) {
620+
return;
621+
}
622+
611623
const tx = session.beginTransaction();
612624
tx.run('CREATE ()').then(() => {
613625
tx.commit().then(() => {

0 commit comments

Comments
 (0)