aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-net-socket-timeout.js
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2016-03-24 18:05:48 -0400
committerBrian White <mscdex@mscdex.net>2016-03-26 04:22:34 -0400
commit8b2e437fdb47370acfb6149e6454851d5aff56fa (patch)
treef1f216aa30599f2bc41840524b17876698941934 /test/parallel/test-net-socket-timeout.js
parentc169ac6bab94d7b57ed7d385c3af53cf4bc4fb71 (diff)
downloadandroid-node-v8-8b2e437fdb47370acfb6149e6454851d5aff56fa.tar.gz
android-node-v8-8b2e437fdb47370acfb6149e6454851d5aff56fa.tar.bz2
android-node-v8-8b2e437fdb47370acfb6149e6454851d5aff56fa.zip
test: fix flaky test-net-socket-timeout
Fixes: https://github.com/nodejs/node/issues/5892 PR-URL: https://github.com/nodejs/node/pull/5902 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-net-socket-timeout.js')
-rw-r--r--test/parallel/test-net-socket-timeout.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-net-socket-timeout.js b/test/parallel/test-net-socket-timeout.js
index f15b20c023..7cae61d71b 100644
--- a/test/parallel/test-net-socket-timeout.js
+++ b/test/parallel/test-net-socket-timeout.js
@@ -41,7 +41,7 @@ server.listen(common.PORT, function() {
});
var timer = setTimeout(function() {
process.exit(1);
- }, 200);
+ }, common.platformTimeout(200));
});
process.on('exit', function() {