Skip to content

Commit

Permalink
test: use platformTimeout() in more places
Browse files Browse the repository at this point in the history
Without these changes, the pi1-raspbian-wheezy CI node was timing
out on these tests.

PR-URL: #4387
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
mscdex committed Dec 22, 2015
1 parent 3213e5f commit d847a74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-dgram-udp4.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ server.bind(server_port);

timer = setTimeout(function() {
throw new Error('Timeout');
}, 200);
}, common.platformTimeout(200));
2 changes: 1 addition & 1 deletion test/parallel/test-http-1.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function test(handler, request_generator, response_validator) {
server.close();
response_validator(server_response, client_got_eof, true);
}
var timer = setTimeout(cleanup, 1000);
var timer = setTimeout(cleanup, common.platformTimeout(1000));
process.on('exit', cleanup);

server.listen(port);
Expand Down

0 comments on commit d847a74

Please sign in to comment.