summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNoSkillGirl <singhpooja240393@gmail.com>2018-11-17 17:23:28 +0530
committerRich Trott <rtrott@gmail.com>2018-11-18 23:46:33 -0800
commitdafd76ca8fa96fc48d9d7c0058a1e3cc9fab1e9b (patch)
tree4df22cf1c778f2a8d1d2c9681cc302b35fb10cd8 /test
parent738e076556f68bf9bca36f447d8a7cc64769b48e (diff)
downloadandroid-node-v8-dafd76ca8fa96fc48d9d7c0058a1e3cc9fab1e9b.tar.gz
android-node-v8-dafd76ca8fa96fc48d9d7c0058a1e3cc9fab1e9b.tar.bz2
android-node-v8-dafd76ca8fa96fc48d9d7c0058a1e3cc9fab1e9b.zip
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test')
-rw-r--r--test/pummel/test-net-write-callbacks.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pummel/test-net-write-callbacks.js b/test/pummel/test-net-write-callbacks.js
index a4a6096d63..0bcc9e2dec 100644
--- a/test/pummel/test-net-write-callbacks.js
+++ b/test/pummel/test-net-write-callbacks.js
@@ -67,5 +67,5 @@ server.listen(common.PORT, function() {
});
process.on('exit', function() {
- assert.strictEqual(N, cbcount);
+ assert.strictEqual(cbcount, N);
});