Skip to content

Commit

Permalink
fixup! fixup! test(e2e): introduce workaround for axios IPv6 in url i…
Browse files Browse the repository at this point in the history
…ssue
  • Loading branch information
relu91 committed Jan 19, 2024
1 parent 31e9f91 commit 8568dcc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/utils/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export async function getE2ETestResources() {

await app.init();
await app.listen(0);
const url = await app.getUrl();
// Workaround for axios not being able to handle [::1] IPv6 addresses
// in CI. See https://github.com/axios/axios/issues/5333
const url = (await app.getUrl()).replace('[::1]', 'localhost');

process.env.ZION_API_BASE = url;

const axios = ax.create({
// Workaround for axios not being able to handle [::1] IPv6 addresses
// in CI. See https://github.com/axios/axios/issues/5333
baseURL: url.replace('[::1]', 'localhost'),
baseURL: url,
validateStatus: () => true,
});

Expand Down

0 comments on commit 8568dcc

Please sign in to comment.