From 0903f67a87777c8b1b5460f2647526ffb55a499e Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 20 Nov 2019 10:00:07 -0800 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/30561 Reviewed-By: Denys Otrishko Reviewed-By: Anna Henningsen --- test/sequential/test-stream-writable-clear-buffer.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/sequential/test-stream-writable-clear-buffer.js b/test/sequential/test-stream-writable-clear-buffer.js index 7d83ac55ddb2af..2734c84949f013 100644 --- a/test/sequential/test-stream-writable-clear-buffer.js +++ b/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 + ); }); }