From 3ccac5b84d42422c9b271fc2ddcaa0ee557bdb51 Mon Sep 17 00:00:00 2001 From: Ross Wollman Date: Mon, 25 Apr 2022 13:24:11 -0700 Subject: [PATCH] fix: installation tests on Node.js 18 (#13744) --- tests/installation/registry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/installation/registry.ts b/tests/installation/registry.ts index 363f671171..7fa56cd27e 100644 --- a/tests/installation/registry.ts +++ b/tests/installation/registry.ts @@ -107,7 +107,7 @@ export class Registry { } }); - this._server.listen(Number.parseInt(new URL(this._url).port, 10), 'localhost'); + this._server.listen(Number.parseInt(new URL(this._url).port, 10), '127.0.0.1'); await new Promise((res, rej) => { this._server.on('listening', () => res()); this._server.on('error', rej);