Skip to content

Commit 780f478

Browse files
committedSep 12, 2024·
test: use platform timeout
PR-URL: #54591 Refs: #54499 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent a72c964 commit 780f478

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.