From 1d949fce2fa0f96714ace6eaf8705035bb017bfe Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 16 Dec 2024 18:07:05 +0000 Subject: [PATCH] Remove containers no matter what unless they are running. --- .../backend-core/tests/core/utilities/testContainerUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend-core/tests/core/utilities/testContainerUtils.ts b/packages/backend-core/tests/core/utilities/testContainerUtils.ts index 01906c9129..765ee2bb89 100644 --- a/packages/backend-core/tests/core/utilities/testContainerUtils.ts +++ b/packages/backend-core/tests/core/utilities/testContainerUtils.ts @@ -160,7 +160,7 @@ export async function startContainer(container: GenericContainer) { // matching container and it has exited, we remove it before carrying on. This // removes the need to do this removal manually. const existingContainer = getContainerByName(name) - if (existingContainer?.State === "exited") { + if (existingContainer && existingContainer.State !== "running") { removeContainer(existingContainer) }