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 <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Roman Klauke <[email protected]>
  • Loading branch information
Trott authored and r-52 committed Nov 23, 2015
1 parent 3becac2 commit 487de19
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 487de19

Please sign in to comment.