This commit is contained in:
Reinier Criel 2025-11-10 10:46:15 -08:00
parent 76acf43128
commit e04c4b6f21
7 changed files with 92 additions and 19 deletions

View file

@ -10,8 +10,8 @@ describe("E2E: pip coverage", () => {
});
beforeEach(async () => {
// Run a new Docker container for each test
container = new DockerTestContainer();
// Run a new Docker container for each test as root user
container = new DockerTestContainer({ asRootUser: true });
await container.start();
const installationShell = await container.openShell("zsh");
@ -316,10 +316,9 @@ describe("E2E: pip coverage", () => {
);
// Should NOT contain certificate verification errors
const sslErrorPattern = /certificate verify failed|CERTIFICATE_VERIFY_FAILED|SSLError/i;
assert.ok(
!result.output.match(
/SSL|certificate verify failed|CERTIFICATE_VERIFY_FAILED/i
),
!sslErrorPattern.test(result.output),
`Should not have SSL/certificate errors for tunneled hosts. Output was:\n${result.output}`
);
});