Skip to content

Commit 40e5788

Browse files
AbhimanyuVashishttargos
authored andcommitted
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: #20920 Refs: https://www.nodetodo.org/getting-started Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 87ad931 commit 40e5788

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/parallel/test-stream-pipe-await-drain-push-while-write.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ const writable = new stream.Writable({
77
write: common.mustCall(function(chunk, encoding, cb) {
88
assert.strictEqual(
99
readable._readableState.awaitDrain,
10-
0,
11-
'State variable awaitDrain is not correct.'
10+
0
1211
);
1312

1413
if (chunk.length === 32 * 1024) { // first chunk
1514
readable.push(Buffer.alloc(34 * 1024)); // above hwm
1615
// We should check if awaitDrain counter is increased in the next
1716
// tick, because awaitDrain is incremented after this method finished
1817
process.nextTick(() => {
19-
assert.strictEqual(readable._readableState.awaitDrain, 1,
20-
'Counter is not increased for awaitDrain');
18+
assert.strictEqual(readable._readableState.awaitDrain, 1);
2119
});
2220
}
2321

0 commit comments

Comments
 (0)