Skip to content

Commit

Permalink
test(e2e): introduce workaround for axios IPv6 in url issue
Browse files Browse the repository at this point in the history
  • Loading branch information
relu91 committed Jan 19, 2024
1 parent 6ae8f61 commit 7d5005a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/utils/resources.ts
Expand Up @@ -9,7 +9,9 @@ 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;

Expand Down

0 comments on commit 7d5005a

Please sign in to comment.