diff options
author | Rich Trott <rtrott@gmail.com> | 2015-12-26 15:04:56 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2015-12-29 19:11:10 -0800 |
commit | 11136bf334cc22c34f7b5969f33d0b9f37342754 (patch) | |
tree | 7e54ce43a1bdc29eeb747201aabd8a20bfe184c2 /test/common.js | |
parent | 312b4d6371b353496f53e7eeeff89dabe25c97fa (diff) | |
download | node-new-11136bf334cc22c34f7b5969f33d0b9f37342754.tar.gz |
test: extend timeout in Debug mode
Debug mode slows execution speed. There is work afoot to enable Debug
mode runs on the continuous integration infrastructure for the project.
Some tests are timing out, such as test-net-GH-5504.js.
This change doubles the timeout returned from `common.platformTimeout()`
when running in Debug mode. It also removes an unused variable from the
aforementioned test-net-GH-5504.js.
PR-URL: https://github.com/nodejs/node/pull/4431
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Diffstat (limited to 'test/common.js')
-rw-r--r-- | test/common.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/common.js b/test/common.js index bd9d4956c9..70ac30e6f4 100644 --- a/test/common.js +++ b/test/common.js @@ -255,6 +255,9 @@ exports.spawnPwd = function(options) { }; exports.platformTimeout = function(ms) { + if (process.config.target_defaults.default_configuration === 'Debug') + ms = 2 * ms; + if (process.arch !== 'arm') return ms; |