Commit 43db0fb
test: fix test-socket-write-after-fin-error
The `'error'` event is not emitted because the socket is already
destroyed when `socket.write()` is called. Use the `socket.write()`
callback instead.
PR-URL: #42340
Refs: #42340 (comment)
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent 2fcf851 commit 43db0fbCopy full SHA for 43db0fb
File tree
Expand file treeCollapse file tree
1 file changed
+5
-5
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+5
-5
lines changedOpen diff view settings
Collapse file
test/parallel/test-socket-write-after-fin-error.js
Copy file name to clipboardExpand all lines: test/parallel/test-socket-write-after-fin-error.js+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
| 19 | + |
23 | 20 | |
24 | 21 | |
25 | 22 | |
26 | 23 | |
27 | 24 | |
28 | 25 | |
29 | 26 | |
30 | | - |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
31 | 31 | |
32 | 32 | |
33 | 33 | |
|
0 commit comments