Commit 82c4022
test: deflake test-http-remove-header-stays-removed
Instead of relying on a timer, verify that `socket.end()` is called when
the `'finish'` event is emitted on the `ServerResponse` object.
PR-URL: #55004
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>1 parent df1f049 commit 82c4022Copy full SHA for 82c4022
File tree
Expand file treeCollapse file tree
1 file changed
+16
-17
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+16
-17
lines changedOpen diff view settings
Collapse file
test/parallel/test-http-remove-header-stays-removed.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-remove-header-stays-removed.js+16-17Lines changed: 16 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
| 28 | + |
| 29 | + |
| 30 | + |
29 | 31 | |
30 | 32 | |
31 | 33 | |
| ||
36 | 38 | |
37 | 39 | |
38 | 40 | |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
43 | 46 | |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
| 47 | + |
| 48 | + |
48 | 49 | |
49 | 50 | |
50 | 51 | |
51 | 52 | |
52 | 53 | |
53 | 54 | |
| 55 | + |
54 | 56 | |
55 | 57 | |
56 | 58 | |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
65 | 64 | |
66 | 65 | |
67 | 66 | |
0 commit comments