From edbe732661849ee3a79254ed724ca5ffa481459c 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 c9d65941923408..aaa32e5b24d14d 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)); });