Skip to content

Commit d847a74

Browse files
committed
test: use platformTimeout() in more places
Without these changes, the pi1-raspbian-wheezy CI node was timing out on these tests. PR-URL: #4387 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 3213e5f commit d847a74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/parallel/test-dgram-udp4.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ server.bind(server_port);
5252

5353
timer = setTimeout(function() {
5454
throw new Error('Timeout');
55-
}, 200);
55+
}, common.platformTimeout(200));

test/parallel/test-http-1.0.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function test(handler, request_generator, response_validator) {
1919
server.close();
2020
response_validator(server_response, client_got_eof, true);
2121
}
22-
var timer = setTimeout(cleanup, 1000);
22+
var timer = setTimeout(cleanup, common.platformTimeout(1000));
2323
process.on('exit', cleanup);
2424

2525
server.listen(port);

0 commit comments

Comments
 (0)