From 40e57885d4ba117e604c5cf0bfa21bccab2a2cad Mon Sep 17 00:00:00 2001 From: AbhimanyuVashisht Date: Thu, 24 May 2018 06:12:22 +0530 Subject: [PATCH] test: remove string literal from strictEqual Remove obsolete string literals from `assert.strictEqual()` calls in test/parallel/test-stream-pip-await-drain-push-while-write.js. PR-URL: https://github.com/nodejs/node/pull/20920 Refs: https://www.nodetodo.org/getting-started Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- .../test-stream-pipe-await-drain-push-while-write.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-stream-pipe-await-drain-push-while-write.js b/test/parallel/test-stream-pipe-await-drain-push-while-write.js index 263e6b6801f68b..d14ad46cb066ec 100644 --- a/test/parallel/test-stream-pipe-await-drain-push-while-write.js +++ b/test/parallel/test-stream-pipe-await-drain-push-while-write.js @@ -7,8 +7,7 @@ const writable = new stream.Writable({ write: common.mustCall(function(chunk, encoding, cb) { assert.strictEqual( readable._readableState.awaitDrain, - 0, - 'State variable awaitDrain is not correct.' + 0 ); if (chunk.length === 32 * 1024) { // first chunk @@ -16,8 +15,7 @@ const writable = new stream.Writable({ // We should check if awaitDrain counter is increased in the next // tick, because awaitDrain is incremented after this method finished process.nextTick(() => { - assert.strictEqual(readable._readableState.awaitDrain, 1, - 'Counter is not increased for awaitDrain'); + assert.strictEqual(readable._readableState.awaitDrain, 1); }); }