Skip to content

Commit 5bd26b6

Browse files
committed
Parameterize test timeouts
1 parent 9bcab38 commit 5bd26b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ chai.use(chaiAsPromised);
88
global.assert = chai.assert;
99

1010
// Give tests that rely on filesystem event delivery lots of breathing room.
11-
until.setDefaultTimeout(3000);
11+
until.setDefaultTimeout(parseInt(process.env.UNTIL_TIMEOUT || '3000', 10));
1212

1313
module.exports = createRunner({
1414
htmlTitle: `GitHub Package Tests - pid ${process.pid}`,
1515
reporter: process.env.MOCHA_REPORTER || 'spec',
1616
overrideTestPaths: [/spec$/, /test/],
1717
}, mocha => {
18-
mocha.timeout(5000);
18+
mocha.timeout(parseInt(process.env.MOCHA_TIMEOUT || '5000', 10));
1919
if (process.env.APPVEYOR_API_URL) {
2020
mocha.reporter(require('mocha-appveyor-reporter'));
2121
}

0 commit comments

Comments
 (0)