From 53fb82d6b1c1304e43d1ae7dc47a085349f1c188 Mon Sep 17 00:00:00 2001 From: "Illescas, Ricardo" Date: Fri, 12 Oct 2018 11:19:56 -0600 Subject: [PATCH] test: fix argument order in assertions PR-URL: https://github.com/nodejs/node/pull/23589 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: Gireesh Punathil --- test/parallel/test-child-process-ipc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-child-process-ipc.js b/test/parallel/test-child-process-ipc.js index 36293cb73c1a7d..f1652a91e6968e 100644 --- a/test/parallel/test-child-process-ipc.js +++ b/test/parallel/test-child-process-ipc.js @@ -44,13 +44,13 @@ child.stdout.on('data', function(data) { console.log(`child said: ${JSON.stringify(data)}`); if (!gotHelloWorld) { console.error('testing for hello world'); - assert.strictEqual('hello world\r\n', data); + assert.strictEqual(data, 'hello world\r\n'); gotHelloWorld = true; console.error('writing echo me'); child.stdin.write('echo me\r\n'); } else { console.error('testing for echo me'); - assert.strictEqual('echo me\r\n', data); + assert.strictEqual(data, 'echo me\r\n'); gotEcho = true; child.stdin.end(); }