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 296a963 commit a9f4ed1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/utils/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export async function getE2ETestResources() {
const url = await app.getUrl();

process.env.ZION_API_BASE = url;
console.log(`API base URL: ${url}`);

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

0 comments on commit a9f4ed1

Please sign in to comment.