Skip to content

Commit 0396124

Browse files
committed
Skip test on versions later than 4.0
1 parent 748be19 commit 0396124

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/v1/internal/server-version.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ const VERSION_3_1_0 = new ServerVersion(3, 1, 0);
113113
const VERSION_3_2_0 = new ServerVersion(3, 2, 0);
114114
const VERSION_3_4_0 = new ServerVersion(3, 4, 0);
115115
const VERSION_3_5_0 = new ServerVersion(3, 5, 0);
116+
const VERSION_4_0_0 = new ServerVersion(4, 0, 0);
116117
const maxVer = Number.MAX_SAFE_INTEGER;
117118
const VERSION_IN_DEV = new ServerVersion(maxVer, maxVer, maxVer);
118119

@@ -122,6 +123,7 @@ export {
122123
VERSION_3_2_0,
123124
VERSION_3_4_0,
124125
VERSION_3_5_0,
126+
VERSION_4_0_0,
125127
VERSION_IN_DEV
126128
};
127129

test/v1/driver.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import sharedNeo4j from '../internal/shared-neo4j';
2222
import FakeConnection from '../internal/fake-connection';
2323
import lolex from 'lolex';
2424
import {DEFAULT_ACQUISITION_TIMEOUT, DEFAULT_MAX_SIZE} from '../../src/v1/internal/pool-config';
25-
import {ServerVersion, VERSION_3_1_0} from '../../src/v1/internal/server-version';
25+
import { ServerVersion, VERSION_3_1_0, VERSION_4_0_0 } from '../../src/v1/internal/server-version';
2626
import testUtils from '../internal/test-utils';
2727

2828
describe('driver', () => {
@@ -201,6 +201,10 @@ describe('driver', () => {
201201
});
202202

203203
it('should fail nicely when connecting with routing to standalone server', done => {
204+
if (serverVersion.compareTo(VERSION_4_0_0) >= 0) {
205+
done();
206+
}
207+
204208
// Given
205209
driver = neo4j.driver("bolt+routing://localhost", sharedNeo4j.authToken);
206210

0 commit comments

Comments
 (0)