mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
823269db2d
commit
29804e00ad
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user