mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
parent
8a8bdec87d
commit
35a2792bb4
@ -58,7 +58,7 @@ export class HttpServer {
|
|||||||
this._activeSockets.add(socket);
|
this._activeSockets.add(socket);
|
||||||
socket.once('close', () => this._activeSockets.delete(socket));
|
socket.once('close', () => this._activeSockets.delete(socket));
|
||||||
});
|
});
|
||||||
this._server.listen(port);
|
this._server.listen(port, '127.0.0.1');
|
||||||
await new Promise(cb => this._server!.once('listening', cb));
|
await new Promise(cb => this._server!.once('listening', cb));
|
||||||
const address = this._server.address();
|
const address = this._server.address();
|
||||||
assert(address, 'Could not bind server socket');
|
assert(address, 'Could not bind server socket');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user