Skip to content

Commit

Permalink
test: fix argument order in assertions
Browse files Browse the repository at this point in the history
PR-URL: #23589
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
Illescas, Ricardo authored and MylesBorins committed Oct 30, 2018
1 parent 9439e3e commit 8b38c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-child-process-ipc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 8b38c2e

Please sign in to comment.