Skip to content

Commit ef32021

Browse files
NoSkillGirltargos
authored andcommitted
test: assertion equality fix
In test-net-write-callback.js, when process exits, we check callback count against the expected value. The assertion is written with the expected value first and actual value second, but that is the opposite of the documented argument order. Reverse them to be consistent with documentation. PR-URL: #24422 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent aea235a commit ef32021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/pummel/test-net-write-callbacks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ server.listen(common.PORT, function() {
6767
});
6868

6969
process.on('exit', function() {
70-
assert.strictEqual(N, cbcount);
70+
assert.strictEqual(cbcount, N);
7171
});

0 commit comments

Comments
 (0)