Skip to content

Commit 33de2c6

Browse files
Trotttargos
authored andcommitted
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 <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent dd07ad4 commit 33de2c6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/sequential/test-stream-writable-clear-buffer.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ for (let i = 1; i <= 5; i++) {
2626
testStream.write(i, () => {
2727
assert.strictEqual(
2828
testStream._writableState.bufferedRequestCount,
29-
testStream._writableState.getBuffer().length,
30-
'bufferedRequestCount variable is different from the actual length of' +
31-
' the buffer');
29+
testStream._writableState.getBuffer().length
30+
);
3231
});
3332
}
3433

0 commit comments

Comments
 (0)