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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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
varerrorTimer=setTimeout(function(){
2222
thrownewError('Timeout was not successful');
23-
},2000);
23+
},common.platformTimeout(2000));
2424

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

0 commit comments

Comments
 (0)