Skip to content

Commit 528294c

Browse files
committed
Increase test timeouts
1 parent 0d66ce9 commit 528294c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

test/internal/connection-providers.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ describe('DirectConnectionProvider', () => {
5151
})
5252

5353
describe('LoadBalancer', () => {
54+
let originalTimeout
55+
beforeEach(function () {
56+
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
57+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000
58+
})
59+
60+
afterEach(function () {
61+
jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout
62+
})
63+
5464
const server0 = ServerAddress.fromUrl('server0')
5565
const server1 = ServerAddress.fromUrl('server1')
5666
const server2 = ServerAddress.fromUrl('server2')

test/internal/http/http-request-runner.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ const VALID_URI = 'http://localhost'
2828
const INVALID_URI = 'http://not-localhost'
2929

3030
describe('http request runner', () => {
31+
let originalTimeout
32+
beforeEach(function () {
33+
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
34+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000
35+
})
36+
37+
afterEach(function () {
38+
jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout
39+
})
40+
3141
it('should begin transaction', done => {
3242
if (testUtils.isServer()) {
3343
done()

0 commit comments

Comments
 (0)