fix: installation tests on Node.js 18 (#13744)

This commit is contained in:
Ross Wollman 2022-04-25 13:24:11 -07:00 committed by GitHub
parent 416b56a0c8
commit 3ccac5b84d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<void>((res, rej) => {
this._server.on('listening', () => res());
this._server.on('error', rej);