test: remove common.localhostIPv6

common.localhostIPv6 is almost entirely unused and is unnecessary.
Remove it.

PR-URL: https://github.com/nodejs/node/pull/34373
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott authored and Myles Borins committed 2020-07-27 18:04:08 -04:00
1 parent 668632d531
commit 699da05b29
2 files changed
+2 -4

No files matched your search

-2
View File
@@ -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;
@@ -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) {