Skip to content

Commit

Permalink
dns: fix test/pummel/test-net-pingpong.js
Browse files Browse the repository at this point in the history
PR-URL: #39987
Fixes: #31566
Refs: #6307
Refs: #20710
Refs: #38099
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
treysis authored and nodejs-github-bot committed Sep 12, 2021
1 parent a08162d commit 5c79d5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/pummel/test-net-pingpong.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ function pingPongTest(host, on_complete) {

// All are run at once and will run on different ports.
pingPongTest(null);
if (common.hasIPv6) pingPongTest('::1'); else pingPongTest('127.0.0.1');
pingPongTest('127.0.0.1');
if (common.hasIPv6) pingPongTest('::1');

process.on('exit', function() {
assert.strictEqual(tests_run, common.hasIPv6 ? 3 : 2);
Expand Down

0 comments on commit 5c79d5a

Please sign in to comment.