diff --git a/src/infra/net/proxy-fetch.test.ts b/src/infra/net/proxy-fetch.test.ts index 331cd1ac6ea..6fb0c01dc0d 100644 --- a/src/infra/net/proxy-fetch.test.ts +++ b/src/infra/net/proxy-fetch.test.ts @@ -75,6 +75,8 @@ describe("resolveProxyFetchFromEnv", () => { it("returns proxy fetch using EnvHttpProxyAgent when HTTPS_PROXY is set", async () => { vi.stubEnv("HTTP_PROXY", ""); vi.stubEnv("HTTPS_PROXY", "http://proxy.test:8080"); + delete process.env.https_proxy; + delete process.env.http_proxy; undiciFetch.mockResolvedValue({ ok: true }); const fetchFn = resolveProxyFetchFromEnv(); @@ -91,6 +93,8 @@ describe("resolveProxyFetchFromEnv", () => { it("returns proxy fetch when HTTP_PROXY is set", () => { vi.stubEnv("HTTPS_PROXY", ""); vi.stubEnv("HTTP_PROXY", "http://fallback.test:3128"); + delete process.env.https_proxy; + delete process.env.http_proxy; const fetchFn = resolveProxyFetchFromEnv(); expect(fetchFn).toBeDefined();