test: use platformTimeout() in more places
Without these changes, the pi1-raspbian-wheezy CI node was timing out on these tests. PR-URL: https://github.com/nodejs/node/pull/4387 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
3213e5fe6e
commit
d847a74405
@ -52,4 +52,4 @@ server.bind(server_port);
|
||||
|
||||
timer = setTimeout(function() {
|
||||
throw new Error('Timeout');
|
||||
}, 200);
|
||||
}, common.platformTimeout(200));
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user