From 97e2aa07a55c0a3e4a00712a9393723b2e73fc5b Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 11 Jul 2024 23:16:24 +0200 Subject: [PATCH] test: fix Windows Socks tests (#31654) --- tests/config/serverFixtures.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/config/serverFixtures.ts b/tests/config/serverFixtures.ts index 009158545c..a156f2ac5f 100644 --- a/tests/config/serverFixtures.ts +++ b/tests/config/serverFixtures.ts @@ -108,6 +108,8 @@ export class MockSocksServer { host: '127.0.0.1', port: 0, }); + }); + this._socksProxy.addListener(SocksProxy.Events.SocksData, async (payload: SocksSocketRequestedPayload) => { const body = 'Served by the SOCKS proxy'; const data = Buffer.from([ 'HTTP/1.1 200 OK',