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
2020-07-14 15:47:58 -07:00
parent 9cb72930e5
commit bf0d82c102
2 changed files with 2 additions and 4 deletions

View File

@@ -776,8 +776,6 @@ const common = {
return localhostIPv4;
},
get localhostIPv6() { return '::1'; },
// opensslCli defined lazily to reduce overhead of spawnSync
get opensslCli() {
if (opensslCli !== null) return opensslCli;

View File

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