mirror of https://github.com/nodejs/node.git
test: use platform timeout
PR-URL: https://github.com/nodejs/node/pull/54591 Refs: https://github.com/nodejs/node/issues/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>pull/54872/head
parent
a72c964b45
commit
780f478d0f
|
@ -3,11 +3,11 @@ const common = require('../common');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const http = require('http');
|
const http = require('http');
|
||||||
|
|
||||||
const REQ_TIMEOUT = 500; // Set max ms of request time before abort
|
const REQ_TIMEOUT = common.platformTimeout(500); // Set max ms of request time before abort
|
||||||
|
|
||||||
// Set total allowed test timeout to avoid infinite loop
|
// Set total allowed test timeout to avoid infinite loop
|
||||||
// that will hang test suite
|
// that will hang test suite
|
||||||
const TOTAL_TEST_TIMEOUT = 1000;
|
const TOTAL_TEST_TIMEOUT = common.platformTimeout(1000);
|
||||||
|
|
||||||
// Placeholder for sockets handled, to make sure that we
|
// Placeholder for sockets handled, to make sure that we
|
||||||
// will reach a socket re-use case.
|
// will reach a socket re-use case.
|
||||||
|
|
Loading…
Reference in New Issue