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: nodejs#4387
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
mscdex authored and Michael Scovetta committed Apr 2, 2016
1 parent 1002f87 commit b7874a6
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 b7874a6

Please sign in to comment.