Commit 9405cdd
test: improve test-stream-duplex-readable-end
- Remove unneeded listener for the `'error'` event.
- Use `common.mustCall()`.
- Verify that the `src` stream gets paused.
PR-URL: #36056
Refs: #35941
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>1 parent 1550073 commit 9405cddCopy full SHA for 9405cdd
File tree
Expand file treeCollapse file tree
1 file changed
+5
-8
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+5
-8
lines changedOpen diff view settings
Collapse file
test/parallel/test-stream-duplex-readable-end.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-duplex-readable-end.js+5-8Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
4 | 4 | |
5 | 5 | |
6 | 6 | |
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | 25 | |
31 | | - |
32 | | - |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
0 commit comments