summaryrefslogtreecommitdiff
path: root/test/sequential
diff options
context:
space:
mode:
authorRock Hu <rockia@mac.com>2018-10-12 10:06:36 -0700
committerAnna Henningsen <anna@addaleax.net>2018-10-14 22:29:45 +0200
commitcb6c33e368d97c0c61a085e56b7196a676a09d85 (patch)
treec30be027a5c4a379306577323f3a1964b35ded27 /test/sequential
parentc19ab565ca888bace37980d2bc990b3e7936f716 (diff)
downloadandroid-node-v8-cb6c33e368d97c0c61a085e56b7196a676a09d85.tar.gz
android-node-v8-cb6c33e368d97c0c61a085e56b7196a676a09d85.tar.bz2
android-node-v8-cb6c33e368d97c0c61a085e56b7196a676a09d85.zip
test: fix assert.strictEqual params order
PR-URL: https://github.com/nodejs/node/pull/23480 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Diffstat (limited to 'test/sequential')
-rw-r--r--test/sequential/test-pipe.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sequential/test-pipe.js b/test/sequential/test-pipe.js
index bc2084295d..c5bff3563b 100644
--- a/test/sequential/test-pipe.js
+++ b/test/sequential/test-pipe.js
@@ -75,7 +75,7 @@ const tcp = net.Server(common.mustCall((s) => {
s.on('data', (d) => {
tcpLengthSeen += d.length;
for (let j = 0; j < d.length; j++) {
- assert.strictEqual(buffer[i], d[j]);
+ assert.strictEqual(d[j], buffer[i]);
i++;
}
});
@@ -103,7 +103,7 @@ function startClient() {
}, common.mustCall((res) => {
res.setEncoding('utf8');
res.on('data', common.mustCall((string) => {
- assert.strictEqual('thanks', string);
+ assert.strictEqual(string, 'thanks');
gotThanks = true;
}));
}));
@@ -113,5 +113,5 @@ function startClient() {
process.on('exit', () => {
assert.ok(gotThanks);
- assert.strictEqual(bufferSize, tcpLengthSeen);
+ assert.strictEqual(tcpLengthSeen, bufferSize);
});