diff options
author | Rich Trott <rtrott@gmail.com> | 2015-11-21 20:10:52 -0800 |
---|---|---|
committer | Roman Klauke <romaaan.git@gmail.com> | 2015-11-23 20:23:34 +0100 |
commit | 487de196840243bda4b260f8de5aa35b4d48840c (patch) | |
tree | 94cf746388ca150151bec345a3d9c4a016560752 /test | |
parent | 3becac2e6095ed6b00a88fae2ab4f3a95b900776 (diff) | |
download | android-node-v8-487de196840243bda4b260f8de5aa35b4d48840c.tar.gz android-node-v8-487de196840243bda4b260f8de5aa35b4d48840c.tar.bz2 android-node-v8-487de196840243bda4b260f8de5aa35b4d48840c.zip |
test: address flaky test-http-client-timeout-event
Use common.platformTimeout() to make test more reliable on Raspberry Pi.
Fixes: https://github.com/nodejs/node/issues/2555
PR-URL: https://github.com/nodejs/node/pull/3968
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Roman Klauke <romaaan.git@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-http-client-timeout-event.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-client-timeout-event.js b/test/parallel/test-http-client-timeout-event.js index c9d6594192..aaa32e5b24 100644 --- a/test/parallel/test-http-client-timeout-event.js +++ b/test/parallel/test-http-client-timeout-event.js @@ -33,8 +33,8 @@ server.listen(options.port, options.host, function() { setTimeout(function() { req.destroy(); assert.equal(timeout_events, 1); - }, 100); + }, common.platformTimeout(100)); setTimeout(function() { req.end(); - }, 50); + }, common.platformTimeout(50)); }); |