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 authored and Fishrock123 committed Jan 6, 2016
1 parent ca97e72 commit 6d14b65
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 6d14b65

Please sign in to comment.