From cb6c33e368d97c0c61a085e56b7196a676a09d85 Mon Sep 17 00:00:00 2001 From: Rock Hu Date: Fri, 12 Oct 2018 10:06:36 -0700 Subject: test: fix assert.strictEqual params order PR-URL: https://github.com/nodejs/node/pull/23480 Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Shelley Vohr --- test/sequential/test-pipe.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/sequential') 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); }); -- cgit v1.2.3