Skip to content

Commit e0b283a

Browse files
TrottMyles Borins
authored andcommitted
test: fix flaky test-http-set-timeout
Increase timeout on Raspberry Pi to alleviate flakiness. Fixes: #5854 PR-URL: #5856 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 5853fec commit e0b283a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-http-set-timeout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ server.listen(common.PORT, function() {
2020

2121
var errorTimer = setTimeout(function() {
2222
throw new Error('Timeout was not successful');
23-
}, 2000);
23+
}, common.platformTimeout(2000));
2424

2525
var x = http.get({port: common.PORT, path: '/'});
2626
x.on('error', function() {

0 commit comments

Comments
 (0)