diff --git a/test/common/index.js b/test/common/index.js index 50722f65c09b82..0b4e8d56ce0f8d 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -787,8 +787,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) {