@@ -24,11 +24,6 @@ import {
2424 stopSSHServer ,
2525 type SSHServerConfig ,
2626} from "./test-fixtures/ssh-fixture" ;
27- import {
28- startDockerRuntimeContainer ,
29- stopDockerRuntimeContainer ,
30- type DockerRuntimeTestConfig ,
31- } from "./test-fixtures/docker-fixture" ;
3227import { createTestRuntime , TestWorkspace , type RuntimeType } from "./test-fixtures/test-helpers" ;
3328import { execBuffered , readFileString , writeFileString } from "@/node/utils/runtime/helpers" ;
3429import type { Runtime } from "@/node/runtime/Runtime" ;
@@ -40,9 +35,6 @@ const describeIntegration = shouldRunIntegrationTests() ? describe : describe.sk
4035// SSH server config (shared across all tests)
4136let sshConfig : SSHServerConfig | undefined ;
4237
43- // DockerRuntime container config (shared across all tests)
44- let dockerConfig : DockerRuntimeTestConfig | undefined ;
45-
4638describeIntegration ( "Runtime integration tests" , ( ) => {
4739 beforeAll ( async ( ) => {
4840 // Check if Docker is available (required for SSH tests)
@@ -56,18 +48,9 @@ describeIntegration("Runtime integration tests", () => {
5648 console . log ( "Starting SSH server container..." ) ;
5749 sshConfig = await startSSHServer ( ) ;
5850 console . log ( `SSH server ready on port ${ sshConfig . port } ` ) ;
59-
60- console . log ( "Starting DockerRuntime test container..." ) ;
61- dockerConfig = await startDockerRuntimeContainer ( ) ;
62- console . log ( `DockerRuntime container ready: ${ dockerConfig . containerName } ` ) ;
6351 } , 120000 ) ; // 120s timeout for Docker build/start operations
6452
6553 afterAll ( async ( ) => {
66- if ( dockerConfig ) {
67- console . log ( "Stopping DockerRuntime test container..." ) ;
68- await stopDockerRuntimeContainer ( dockerConfig ) ;
69- }
70-
7154 if ( sshConfig ) {
7255 console . log ( "Stopping SSH server container..." ) ;
7356 await stopSSHServer ( sshConfig ) ;
@@ -95,7 +78,14 @@ describeIntegration("Runtime integration tests", () => {
9578 // time budget. Keep the Docker coverage focused on the core Runtime contract.
9679 const describeNonDocker = type === "docker" ? describe . skip : describe ;
9780 const createRuntime = ( ) : Runtime =>
98- createTestRuntime ( type , getBaseWorkdir ( ) , sshConfig , dockerConfig ) ;
81+ createTestRuntime (
82+ type ,
83+ getBaseWorkdir ( ) ,
84+ sshConfig ,
85+ type === "docker"
86+ ? { image : "mux-ssh-test" , containerName : sshConfig ! . containerId }
87+ : undefined
88+ ) ;
9989
10090 describe ( "exec() - Command execution" , ( ) => {
10191 test . concurrent ( "captures stdout and stderr separately" , async ( ) => {
0 commit comments