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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
mscdex authored and Myles Borins committed Jan 19, 2016
1 parent 823269d commit 29804e0
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 29804e0

Please sign in to comment.