From 58e0b4b7271e5d8c20c16a1a777a0a3c2276f200 Mon Sep 17 00:00:00 2001 From: Raymond Zhao <7199958+rzhao271@users.noreply.github.com> Date: Thu, 9 Nov 2023 10:13:56 -0800 Subject: [PATCH] tests: fix test (#29) --- src/test/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test.ts b/src/test/test.ts index 91373d7..ac09741 100644 --- a/src/test/test.ts +++ b/src/test/test.ts @@ -117,7 +117,7 @@ test('proxy https to https', async t => { const serverAddress = server.address() as AddressInfo; - const response = await xhr({ url: `https://localhost:${serverAddress.port}` }); + const response = await xhr({ url: `https://${serverAddress.address}:${serverAddress.port}` }); t.is(response.responseText, 'ok'); t.is(response.status, 200);