From b68697002a0ef990b8fad8b767409659b7aedba4 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 24 Jul 2024 16:48:35 +0100 Subject: [PATCH] Anoter fix. --- packages/server/src/integrations/tests/utils/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/server/src/integrations/tests/utils/index.ts b/packages/server/src/integrations/tests/utils/index.ts index 5945d47088..8e317d9099 100644 --- a/packages/server/src/integrations/tests/utils/index.ts +++ b/packages/server/src/integrations/tests/utils/index.ts @@ -68,12 +68,11 @@ export async function knexClient(ds: Datasource) { export async function startContainer(container: GenericContainer) { const imageName = (container as any).imageName.string as string - let key: string + let key: string = imageName if (imageName.includes("@sha256")) { key = imageName.split("@")[0] - } else { - key = imageName.replaceAll("/", "-").replaceAll(":", "-") } + key = key.replaceAll("/", "-").replaceAll(":", "-") container = container .withReuse()