Skip to content

Commit c6f9afe

Browse files
jakecastellitargos
authored andcommittedOct 2, 2024
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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ const common = require('../common');
33
const assert = require('assert');
44
const http = require('http');
55

6-
const REQ_TIMEOUT = 500; // Set max ms of request time before abort
6+
const REQ_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-
const TOTAL_TEST_TIMEOUT = 1000;
10+
const TOTAL_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)
Please sign in to comment.