Skip to content

Commit 73b16dd

Browse files
committed
Allow more time for integration test startup in travis
1 parent 9448974 commit 73b16dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/integration-test.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { delay } from '../src/util';
77
import { expect } from 'chai';
88

99
describe('Integration test', function () {
10-
this.timeout(10000);
10+
this.timeout(15000);
1111

1212
let serverProcess: ChildProcess;
1313
let stdout = '';
@@ -23,7 +23,8 @@ describe('Integration test', function () {
2323
serverProcess.stdout.on('data', (d) => stdout = stdout + d.toString());
2424
serverProcess.stderr.on('data', (d) => stderr = stderr + d.toString());
2525

26-
await delay(5000);
26+
// In CI, this takes much longer than locally, so wait a little.
27+
await delay(process.env.CI ? 10000 : 2000);
2728
});
2829

2930
afterEach(() => {

0 commit comments

Comments
 (0)