test: fix android tests

This commit is contained in:
Max Schmitt 2024-10-09 11:10:04 +02:00
parent bcf4ff1e47
commit 725e103c5f

View file

@ -51,7 +51,7 @@ export const serverFixtures: Fixtures<ServerFixtures, ServerWorkerOptions> = {
const socksServer = new MockSocksServer(); const socksServer = new MockSocksServer();
const socksPort = port + 2; const socksPort = port + 2;
await socksServer.listen(socksPort, loopback); await socksServer.listen(socksPort);
const proxyPort = port + 3; const proxyPort = port + 3;
const proxyServer = await TestProxy.create(proxyPort); const proxyServer = await TestProxy.create(proxyPort);
@ -124,7 +124,7 @@ export class MockSocksServer {
}); });
} }
async listen(port: number, hostname: string) { async listen(port: number, hostname?: string) {
await this._socksProxy.listen(port, hostname); await this._socksProxy.listen(port, hostname);
} }