Commit e121d7d
test: fix invalid common.mustSucceed() usage
By its own nature, the function returned by `common.mustSucceed()`
cannot be used as a listener for `'error'` events.
Write errors like `read ECONNRESET` or `write EPIPE`, should be ignored
because the socket might be closed by the other peer while the request
is sent.
Refs: 3caa2c1a005652fdb3e8
PR-URL: #56756
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent 11b82de commit e121d7dCopy full SHA for e121d7d
File tree
Expand file treeCollapse file tree
6 files changed
+48
-36
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
6 files changed
+48
-36
lines changedOpen diff view settings
Collapse file
test/parallel/test-http-server-headers-timeout-delayed-headers.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-headers-timeout-delayed-headers.js+7-5Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | | - |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
42 | 47 | |
43 | 48 | |
44 | 49 | |
45 | 50 | |
46 | 51 | |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
| 52 | + |
51 | 53 | |
52 | 54 | |
53 | 55 | |
|
Collapse file
test/parallel/test-http-server-headers-timeout-interrupted-headers.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-headers-timeout-interrupted-headers.js+7-5Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | | - |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
42 | 47 | |
43 | 48 | |
44 | 49 | |
45 | 50 | |
46 | 51 | |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
| 52 | + |
51 | 53 | |
52 | 54 | |
53 | 55 | |
|
Collapse file
test/parallel/test-http-server-request-timeout-delayed-body.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-request-timeout-delayed-body.js+13-11Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
48 | 61 | |
49 | 62 | |
50 | 63 | |
| ||
57 | 70 | |
58 | 71 | |
59 | 72 | |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | 73 | |
Collapse file
test/parallel/test-http-server-request-timeout-delayed-headers.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-request-timeout-delayed-headers.js+7-5Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
33 | 33 | |
34 | 34 | |
35 | 35 | |
36 | | - |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
37 | 42 | |
38 | 43 | |
39 | 44 | |
40 | 45 | |
41 | 46 | |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
| 47 | + |
46 | 48 | |
47 | 49 | |
48 | 50 | |
|
Collapse file
test/parallel/test-http-server-request-timeout-interrupted-body.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-request-timeout-interrupted-body.js+7-5Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
48 | | - |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
49 | 54 | |
50 | 55 | |
51 | 56 | |
52 | 57 | |
53 | 58 | |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
| 59 | + |
58 | 60 | |
59 | 61 | |
60 | 62 | |
|
Collapse file
test/parallel/test-http-server-request-timeout-interrupted-headers.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-request-timeout-interrupted-headers.js+7-5Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
33 | 33 | |
34 | 34 | |
35 | 35 | |
36 | | - |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
37 | 42 | |
38 | 43 | |
39 | 44 | |
40 | 45 | |
41 | 46 | |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
| 47 | + |
46 | 48 | |
47 | 49 | |
48 | 50 | |
|
0 commit comments