fix: installation tests on Node.js 18 (#13744)
This commit is contained in:
parent
416b56a0c8
commit
3ccac5b84d
|
|
@ -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) => {
|
await new Promise<void>((res, rej) => {
|
||||||
this._server.on('listening', () => res());
|
this._server.on('listening', () => res());
|
||||||
this._server.on('error', rej);
|
this._server.on('error', rej);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue