Skip to content
Permalink
Browse files

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>
  • Loading branch information
Trott authored and MylesBorins committed Nov 20, 2019
1 parent 59c9592 commit 0903f67a87777c8b1b5460f2647526ffb55a499e
Showing with 2 additions and 3 deletions.
  1. +2 −3 test/sequential/test-stream-writable-clear-buffer.js
@@ -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
);
});
}

0 comments on commit 0903f67

Please sign in to comment.
You can’t perform that action at this time.