Skip to content

Commit 665a35d

Browse files
Trottrvagg
authored andcommitted
test: address flaky test-http-client-timeout-event
Use common.platformTimeout() to make test more reliable on Raspberry Pi. Fixes: #2555 PR-URL: #3968 Reviewed-By: Brendan Ashworth <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Roman Klauke <[email protected]>
1 parent 4602e01 commit 665a35d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-client-timeout-event.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ server.listen(options.port, options.host, function() {
3333
setTimeout(function() {
3434
req.destroy();
3535
assert.equal(timeout_events, 1);
36-
}, 100);
36+
}, common.platformTimeout(100));
3737
setTimeout(function() {
3838
req.end();
39-
}, 50);
39+
}, common.platformTimeout(50));
4040
});

0 commit comments

Comments
 (0)