mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test: use consistent timeouts
PR-URL: https://github.com/nodejs/node/pull/42893 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
f714a0fa6e
commit
c3aa86d678
11 changed files with 153 additions and 22 deletions
|
@ -67,7 +67,7 @@ server.listen(0, common.mustCall(() => {
|
|||
performRequestWithDelay(
|
||||
client,
|
||||
requestTimeout / 5,
|
||||
requestTimeout,
|
||||
requestTimeout * 2,
|
||||
true
|
||||
);
|
||||
}, defer).unref();
|
||||
|
@ -88,7 +88,7 @@ server.listen(0, common.mustCall(() => {
|
|||
client.on('error', errOrEnd);
|
||||
client.on('end', errOrEnd);
|
||||
|
||||
// Perform a second request expected to finish before requestTimeout
|
||||
// Perform a first request which is completed immediately
|
||||
performRequestWithDelay(
|
||||
client,
|
||||
requestTimeout / 5,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue