From 5c79d5a943fc4ab47de0d942fa06e61c5276b485 Mon Sep 17 00:00:00 2001 From: treysis Date: Sun, 5 Sep 2021 19:19:35 +0200 Subject: [PATCH] dns: fix test/pummel/test-net-pingpong.js PR-URL: https://github.com/nodejs/node/pull/39987 Fixes: https://github.com/nodejs/node/issues/31566 Refs: https://github.com/nodejs/node/issues/6307 Refs: https://github.com/nodejs/node/pull/20710 Refs: https://github.com/nodejs/node/pull/38099 Reviewed-By: Antoine du Hamel Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- test/pummel/test-net-pingpong.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/pummel/test-net-pingpong.js b/test/pummel/test-net-pingpong.js index c5ada54fcecd74..7db902ddbed20a 100644 --- a/test/pummel/test-net-pingpong.js +++ b/test/pummel/test-net-pingpong.js @@ -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);