From 0369ea93fd0fc3eb6e1213262857ad7e7fdbd2b9 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 21 Nov 2015 20:10:52 -0800 Subject: [PATCH] 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 Reviewed-By: Roman Reiss Reviewed-By: Roman Klauke --- test/parallel/test-http-client-timeout-event.js | 4 ++-- 1 file 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 c9d6594..aaa32e5 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)); }); -- 2.7.4