Browse Source

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>
v4.x
Brian White 9 years ago
committed by Myles Borins
parent
commit
29804e00ad
  1. 2
      test/parallel/test-dgram-udp4.js
  2. 2
      test/parallel/test-http-1.0.js

2
test/parallel/test-dgram-udp4.js

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

2
test/parallel/test-http-1.0.js

@ -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…
Cancel
Save