From 699da05b29fcefee9633dd4d98d263391c086107 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 14 Jul 2020 15:47:58 -0700 Subject: [PATCH] test: remove common.localhostIPv6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit common.localhostIPv6 is almost entirely unused and is unnecessary. Remove it. PR-URL: https://github.com/nodejs/node/pull/34373 Reviewed-By: Richard Lau Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell --- test/common/index.js | 2 -- test/sequential/test-net-connect-local-error.js | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/common/index.js b/test/common/index.js index 6d191409ad4d7f..c138c6a8415de0 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -773,8 +773,6 @@ const common = { return localhostIPv4; }, - get localhostIPv6() { return '::1'; }, - // opensslCli defined lazily to reduce overhead of spawnSync get opensslCli() { if (opensslCli !== null) return opensslCli; diff --git a/test/sequential/test-net-connect-local-error.js b/test/sequential/test-net-connect-local-error.js index 6f5139aefb226d..030c4de750cb4d 100644 --- a/test/sequential/test-net-connect-local-error.js +++ b/test/sequential/test-net-connect-local-error.js @@ -14,10 +14,10 @@ const optionsIPv4 = { }; const optionsIPv6 = { - host: common.localhostIPv6, + host: '::1', port: common.PORT + 2, localPort: common.PORT + 3, - localAddress: common.localhostIPv6 + localAddress: '::1', }; function onError(err, options) {