Skip to content

Commit ce7b131

Browse files
committed
add container to stack if started
1 parent 331a8ac commit ce7b131

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/e2e/src/tenv.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,6 @@ export function createTenv(cwd: string): Tenv {
891891
return ctr.stop({ t: 0, signal: 'SIGTERM' });
892892
},
893893
};
894-
leftoverStack.use(container);
895894

896895
// verify that the container has started
897896
await setTimeout(interval);
@@ -904,6 +903,9 @@ export function createTenv(cwd: string): Tenv {
904903
throw err;
905904
}
906905

906+
// we add the container to the stack only if it started
907+
leftoverStack.use(container);
908+
907909
// wait for healthy
908910
if (healthcheck.length > 0) {
909911
while (!ctrl.signal.aborted) {

0 commit comments

Comments
 (0)