diff --git a/packages/safe-chain/src/packagemanager/pip/runPipCommand.spec.js b/packages/safe-chain/src/packagemanager/pip/runPipCommand.spec.js index b3d7b2e..ecd8e0f 100644 --- a/packages/safe-chain/src/packagemanager/pip/runPipCommand.spec.js +++ b/packages/safe-chain/src/packagemanager/pip/runPipCommand.spec.js @@ -29,7 +29,10 @@ describe("runPipCommand environment variable handling", () => { mergeSafeChainProxyEnvironmentVariables: (env) => ({ ...env, ...customEnv, + // Force deterministic proxy for tests regardless of ambient env + GLOBAL_AGENT_HTTP_PROXY: "http://localhost:8080", HTTPS_PROXY: "http://localhost:8080", + HTTP_PROXY: "", }), }, }); diff --git a/test/e2e/DockerTestContainer.js b/test/e2e/DockerTestContainer.js index 289b451..ec1af3c 100644 --- a/test/e2e/DockerTestContainer.js +++ b/test/e2e/DockerTestContainer.js @@ -33,7 +33,7 @@ export class DockerTestContainer { ].join(" "); execSync( - `docker build --no-cache -t ${imageName} -f ${dockerFile} ${contextPath} ${buildArgs}`, + `docker build -t ${imageName} -f ${dockerFile} ${contextPath} ${buildArgs}`, { stdio: "ignore", }