Commit e5de225
test: simplify assertion in http2 tests
In test-http2-timeout-large-write.js and
test-http2-timeout-large-write-file.js:
Use assert.ok() on a boolean that the test itself creates and sets,
rather than assert.strictEqual(). This allows us to use a static message
without running afoul of the upcoming "do not use string literals with
assert.strictEqual()" lint rule.
Backport-PR-URL: #22912
PR-URL: #22849
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent b31a4d0 commit e5de225Copy full SHA for e5de225
File tree
Expand file treeCollapse file tree
2 files changed
+3
-3
lines changedOpen diff view settings
Filter options
- test/sequential
Expand file treeCollapse file tree
2 files changed
+3
-3
lines changedOpen diff view settings
Collapse file
test/sequential/test-http2-timeout-large-write-file.js
Copy file name to clipboardExpand all lines: test/sequential/test-http2-timeout-large-write-file.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | | - |
| 51 | + |
52 | 52 | |
53 | 53 | |
54 | 54 | |
|
Collapse file
test/sequential/test-http2-timeout-large-write.js
Copy file name to clipboardExpand all lines: test/sequential/test-http2-timeout-large-write.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
43 | | - |
| 43 | + |
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | 47 | |
48 | 48 | |
49 | | - |
| 49 | + |
50 | 50 | |
51 | 51 | |
52 | 52 | |
|
0 commit comments