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 <shishugi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
Trott authored and targos committed Dec 1, 2019
1 parent dd07ad4 commit 33de2c6
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 33de2c6

Please sign in to comment.