Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

test(request): keep the pass-through test off any env proxy

Vlad Ligai52c51bee9220
diff --git a/backend/src/lib/config/request.test.ts b/backend/src/lib/config/request.test.ts
index 6d66d57523..2da18f8dc6 100644
--- a/backend/src/lib/config/request.test.ts
+++ b/backend/src/lib/config/request.test.ts
@@ -45,7 +45,7 @@ describe("createRequestClient", () => {
try {
const { port } = server.address() as AddressInfo;
const err = (await client
- .get(`http://127.0.0.1:${port}/`, { timeout: 5000 })
+ .get(`http://127.0.0.1:${port}/`, { timeout: 5000, proxy: false })
.catch((e: unknown) => e)) as AxiosError;
expect(err.message).toBe("Request failed with status code 500");
expect(err.response?.status).toBe(500);