Skip to content

Commit

Permalink
tests: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Nov 9, 2023
1 parent 1d29ee6 commit 85fa7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 85fa7ad

Please sign in to comment.