Skip to content

Commit 6deff52

Browse files
committed
Increase test timeout for HTTP driver tests
1 parent 4716d77 commit 6deff52

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/internal/http/http-driver.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ import {ServerVersion, VERSION_3_1_0, VERSION_3_4_0} from '../../../src/v1/inter
2424

2525
describe('http driver', () => {
2626

27+
let originalTimeout;
2728
let boltDriver;
2829
let httpDriver;
2930
let serverVersion;
3031

3132
beforeEach(done => {
33+
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
34+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;
35+
3236
boltDriver = neo4j.driver('bolt://localhost', sharedNeo4j.authToken, {disableLosslessIntegers: true});
3337
httpDriver = neo4j.driver('http://localhost:7474', sharedNeo4j.authToken);
3438

@@ -42,6 +46,8 @@ describe('http driver', () => {
4246
});
4347

4448
afterEach(() => {
49+
jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout;
50+
4551
if (boltDriver) {
4652
boltDriver.close();
4753
boltDriver = null;

0 commit comments

Comments
 (0)