Skip to content

Commit

Permalink
test: fix test-dgram-pingpong assertion arg order
Browse files Browse the repository at this point in the history
PR-URL: #23514
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
gendelbendel authored and jasnell committed Oct 17, 2018
1 parent 4958e7a commit 05ce394
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sequential/test-dgram-pingpong.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const dgram = require('dgram');
function pingPongTest(port, host) {

const server = dgram.createSocket('udp4', common.mustCall((msg, rinfo) => {
assert.strictEqual('PING', msg.toString('ascii'));
assert.strictEqual(msg.toString('ascii'), 'PING');
server.send('PONG', 0, 4, rinfo.port, rinfo.address);
}));

Expand All @@ -20,7 +20,7 @@ function pingPongTest(port, host) {
const client = dgram.createSocket('udp4');

client.on('message', function(msg) {
assert.strictEqual('PONG', msg.toString('ascii'));
assert.strictEqual(msg.toString('ascii'), 'PONG');

client.close();
server.close();
Expand Down

0 comments on commit 05ce394

Please sign in to comment.