Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 103d01e

Browse filesBrowse files
Trottaddaleax
authored andcommitted
test: remove string literal as message in strictEqual() in stream test
This reveals the values that cause the assertion error, should it happen. PR-URL: #30561 Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent ebba322 commit 103d01e
Copy full SHA for 103d01e

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Open diff view settings
Collapse file

‎test/sequential/test-stream-writable-clear-buffer.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-stream-writable-clear-buffer.js
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ for (let i = 1; i <= 5; i++) {
2626
testStream.write(i, () => {
2727
assert.strictEqual(
2828
testStream._writableState.bufferedRequestCount,
29-
testStream._writableState.getBuffer().length,
30-
'bufferedRequestCount variable is different from the actual length of' +
31-
' the buffer');
29+
testStream._writableState.getBuffer().length
30+
);
3231
});
3332
}
3433

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.