Skip to content

Commit c6f9afe

Browse files
jakecastellitargos
authored andcommitted
test: use platform timeout
PR-URL: #54591 Refs: #54499 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 8f49b7c commit c6f9afe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/parallel/test-http-outgoing-end-cork.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ const common = require('../common');
33
constassert=require('assert');
44
consthttp=require('http');
55

6-
constREQ_TIMEOUT=500;// Set max ms of request time before abort
6+
constREQ_TIMEOUT=common.platformTimeout(500);// Set max ms of request time before abort
77

88
// Set total allowed test timeout to avoid infinite loop
99
// that will hang test suite
10-
constTOTAL_TEST_TIMEOUT=1000;
10+
constTOTAL_TEST_TIMEOUT=common.platformTimeout(1000);
1111

1212
// Placeholder for sockets handled, to make sure that we
1313
// will reach a socket re-use case.

0 commit comments

Comments
 (0)