Skip to content

Commit

Permalink
test: remove string literal as message in strictEqual() in stream test
Browse files Browse the repository at this point in the history
This reveals the values that cause the assertion error, should it
happen.

PR-URL: #30561
Reviewed-By: Denys Otrishko <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
Trott authored and MylesBorins committed Dec 17, 2019
1 parent 59c9592 commit 0903f67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/sequential/test-stream-writable-clear-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ for (let i = 1; i <= 5; i++) {
testStream.write(i, () => {
assert.strictEqual(
testStream._writableState.bufferedRequestCount,
testStream._writableState.getBuffer().length,
'bufferedRequestCount variable is different from the actual length of' +
' the buffer');
testStream._writableState.getBuffer().length
);
});
}

Expand Down

0 comments on commit 0903f67

Please sign in to comment.