Skip to content

Commit 4970cd6

Browse files
AbhimanyuVashishtBridgeAR
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 <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent cf989b6 commit 4970cd6

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)