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>
pull/3941/merge
Rich Trott 2015-11-21 20:10:52 -08:00 committed by Roman Klauke
parent 3becac2e60
commit 487de19684
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ server.listen(options.port, options.host, function() {
setTimeout(function() { setTimeout(function() {
req.destroy(); req.destroy();
assert.equal(timeout_events, 1); assert.equal(timeout_events, 1);
}, 100); }, common.platformTimeout(100));
setTimeout(function() { setTimeout(function() {
req.end(); req.end();
}, 50); }, common.platformTimeout(50));
}); });