Skip to content

Commit

Permalink
test: address flaky test-http-client-timeout-event
Browse files Browse the repository at this point in the history
Use common.platformTimeout() to make test more reliable on Raspberry Pi.

Fixes: #2555
PR-URL: #3968

Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Roman Klauke <romaaan.git@gmail.com>
  • Loading branch information
Trott authored and rvagg committed Dec 5, 2015
1 parent 4602e01 commit 665a35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-client-timeout-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});

0 comments on commit 665a35d

Please sign in to comment.