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:
Brian White 2015-12-22 12:43:44 -05:00
parent 3213e5fe6e
commit d847a74405
2 changed files with 2 additions and 2 deletions

View File

@ -52,4 +52,4 @@ server.bind(server_port);
timer = setTimeout(function() {
throw new Error('Timeout');
}, 200);
}, common.platformTimeout(200));

View File

@ -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);