Skip to content

Commit f058993

Browse files
committed
🤖 test: reuse ssh test image for DockerRuntime fixture
Avoids an extra docker image build during runtime integration tests by reusing the existing mux-ssh-test image (bash+git already installed). This keeps CI integration runtime under the job timeout while still exercising DockerRuntime.
1 parent 8c37b2c commit f058993

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

tests/runtime/test-fixtures/docker-fixture.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ export interface DockerRuntimeTestConfig {
1313
}
1414

1515
export async function startDockerRuntimeContainer(): Promise<DockerRuntimeTestConfig> {
16-
// Build image used for DockerRuntime tests
17-
const dockerfilePath = `${__dirname}/docker-runtime`;
18-
const image = "mux-docker-runtime-test";
19-
20-
await execCommand("docker", ["build", "-t", image, dockerfilePath], { timeout: 60000 });
16+
// Reuse the existing SSH runtime test image. It already includes bash + git,
17+
// and avoids an extra docker build in CI.
18+
const image = "mux-ssh-test";
2119

2220
const containerName = `mux-docker-runtime-test-${crypto.randomBytes(8).toString("hex")}`;
2321

tests/runtime/test-fixtures/docker-runtime/Dockerfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)