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) {