Skip to content

Commit 9b2ab12

Browse files
NoSkillGirlrvagg
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 <targos@protonmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 2777bc4 commit 9b2ab12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)