Skip to content

Commit

Permalink
test: adjust to DNS result orders from OS
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Apr 24, 2023
1 parent 9000243 commit 4aaad0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extensions/vscode-test-resolver/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ export function activate(context: vscode.ExtensionContext) {
}

const { updateUrl, commit, quality, serverDataFolderName, serverApplicationName, dataFolderName } = getProductConfiguration();
const commandArgs = ['--host=127.0.0.1', '--port=0', '--disable-telemetry', '--use-host-proxy', '--accept-server-license-terms'];
// Refs https://github.com/nodejs/node/issues/40702
// Use localhost instead of explicit ipv4 address.
const commandArgs = ['--host=localhost', '--port=0', '--disable-telemetry', '--use-host-proxy', '--accept-server-license-terms'];
const env = getNewEnv();
const remoteDataDir = process.env['TESTRESOLVER_DATA_FOLDER'] || path.join(os.homedir(), `${serverDataFolderName || dataFolderName}-testresolver`);
const logsDir = process.env['TESTRESOLVER_LOGS_FOLDER'];
Expand Down

0 comments on commit 4aaad0a

Please sign in to comment.