Commit 86a7fb0
test: deflake gc-http-client tests by restricting number of requests
sequential/test-gc-http-client tests were sometimes failing due to
a non-deterministic number of requests being created, causing the
test to fail on some systems with a "ECONNRESET" error caused by
too many concurrent connections
Fixes: #43638
PR-URL: #44146
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>1 parent e17117d commit 86a7fb0Copy full SHA for 86a7fb0
File tree
Expand file treeCollapse file tree
3 files changed
+32
-19
lines changedOpen diff view settings
Filter options
- test/sequential
Expand file treeCollapse file tree
3 files changed
+32
-19
lines changedOpen diff view settings
Collapse file
test/sequential/test-gc-http-client-onerror.js
Copy file name to clipboardExpand all lines: test/sequential/test-gc-http-client-onerror.js+17-12Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
| 18 | + |
18 | 19 | |
19 | 20 | |
20 | 21 | |
| ||
23 | 24 | |
24 | 25 | |
25 | 26 | |
26 | | - |
| 27 | + |
27 | 28 | |
28 | 29 | |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
| 30 | + |
| 31 | + |
| 32 | + |
36 | 33 | |
37 | | - |
38 | | - |
| 34 | + |
| 35 | + |
39 | 36 | |
40 | | - |
41 | | - |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
42 | 47 | |
43 | 48 | |
44 | 49 | |
|
Collapse file
test/sequential/test-gc-http-client-timeout.js
Copy file name to clipboardExpand all lines: test/sequential/test-gc-http-client-timeout.js+8-4Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
| 20 | + |
20 | 21 | |
21 | 22 | |
22 | 23 | |
23 | 24 | |
24 | 25 | |
25 | 26 | |
26 | | - |
| 27 | + |
27 | 28 | |
28 | | - |
| 29 | + |
29 | 30 | |
30 | 31 | |
31 | 32 | |
| 33 | + |
| 34 | + |
| 35 | + |
32 | 36 | |
33 | 37 | |
34 | 38 | |
| ||
40 | 44 | |
41 | 45 | |
42 | 46 | |
43 | | - |
| 47 | + |
44 | 48 | |
45 | 49 | |
46 | 50 | |
47 | | - |
| 51 | + |
48 | 52 | |
49 | 53 | |
50 | 54 | |
|
Collapse file
test/sequential/test-gc-http-client.js
Copy file name to clipboardExpand all lines: test/sequential/test-gc-http-client.js+7-3Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
| 16 | + |
16 | 17 | |
17 | 18 | |
18 | 19 | |
| ||
21 | 22 | |
22 | 23 | |
23 | 24 | |
24 | | - |
| 25 | + |
25 | 26 | |
26 | 27 | |
27 | | - |
| 28 | + |
28 | 29 | |
29 | 30 | |
30 | 31 | |
| 32 | + |
| 33 | + |
| 34 | + |
31 | 35 | |
32 | 36 | |
33 | 37 | |
| ||
37 | 41 | |
38 | 42 | |
39 | 43 | |
40 | | - |
| 44 | + |
41 | 45 | |
42 | 46 | |
43 | 47 | |
|
0 commit comments