Commit e8eed5c
test: convert assertion that always fails to assert.fail()
In test-http-destroyed-socket-write2, the assert.strictEqual() in the
default case of the switch statement will always fail because it checks
for a value that is already accounted for in one of the switch cases.
Convert it to assert.fail().
PR-URL: #34793
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 7d0970c commit e8eed5cCopy full SHA for e8eed5c
File tree
Expand file treeCollapse file tree
1 file changed
+1
-3
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+1
-3
lines changedOpen diff view settings
Collapse file
test/parallel/test-http-destroyed-socket-write2.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-destroyed-socket-write2.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
64 | 64 | |
65 | 65 | |
66 | 66 | |
67 | | - |
68 | | - |
69 | | - |
| 67 | + |
70 | 68 | |
71 | 69 | |
72 | 70 | |
|
0 commit comments