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 addaleax committed Nov 30, 2019
1 parent ebba322 commit 103d01e
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 103d01e

Please sign in to comment.