Skip to content

Commit

Permalink
test: fix assertion argument order
Browse files Browse the repository at this point in the history
PR-URL: nodejs#23545
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
carlrc authored and BridgeAR committed Oct 15, 2018
1 parent 2dd955b commit 8748658
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-stream-pipe-cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ for (i = 0; i < limit; i++) {
r.pipe(w);
r.emit('end');
}
assert.strictEqual(0, r.listeners('end').length);
assert.strictEqual(limit, w.endCalls);
assert.strictEqual(r.listeners('end').length, 0);
assert.strictEqual(w.endCalls, limit);

w.endCalls = 0;

Expand All @@ -75,8 +75,8 @@ for (i = 0; i < limit; i++) {
r.pipe(w);
r.emit('close');
}
assert.strictEqual(0, r.listeners('close').length);
assert.strictEqual(limit, w.endCalls);
assert.strictEqual(r.listeners('close').length, 0);
assert.strictEqual(w.endCalls, limit);

w.endCalls = 0;

Expand All @@ -87,7 +87,7 @@ for (i = 0; i < limit; i++) {
r.pipe(w);
w.emit('close');
}
assert.strictEqual(0, w.listeners('close').length);
assert.strictEqual(w.listeners('close').length, 0);

r = new Readable();
w = new Writable();
Expand Down

0 comments on commit 8748658

Please sign in to comment.