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: nodejs#30561
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
Trott committed Nov 22, 2019
1 parent ac43427 commit c13f8fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/sequential/test-stream-writable-clear-buffer.js
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 c13f8fc

Please sign in to comment.