From 618d8a5723799fd051914d490201fe09065564f4 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 16 Dec 2024 18:53:41 +0000 Subject: [PATCH] Extending startup timeout for SQL Server (other databases functioning fine). --- .../backend-core/tests/core/utilities/testContainerUtils.ts | 2 +- packages/server/src/integrations/tests/utils/mssql.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend-core/tests/core/utilities/testContainerUtils.ts b/packages/backend-core/tests/core/utilities/testContainerUtils.ts index c144e82eea..4a60ce6eb3 100644 --- a/packages/backend-core/tests/core/utilities/testContainerUtils.ts +++ b/packages/backend-core/tests/core/utilities/testContainerUtils.ts @@ -55,7 +55,7 @@ export function getContainerByImage(image: string) { } function getContainerByName(name: string) { - return getTestcontainers().find(x => x.Names === name) + return getTestcontainers().find(x => x.Names.includes(name)) } export function getContainerById(id: string) { diff --git a/packages/server/src/integrations/tests/utils/mssql.ts b/packages/server/src/integrations/tests/utils/mssql.ts index 548631a987..aa6ef7a1e3 100644 --- a/packages/server/src/integrations/tests/utils/mssql.ts +++ b/packages/server/src/integrations/tests/utils/mssql.ts @@ -24,7 +24,7 @@ export async function getDatasource(): Promise { .withWaitStrategy( Wait.forSuccessfulCommand( "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Password_123 -q 'SELECT 1'" - ).withStartupTimeout(20000) + ).withStartupTimeout(60000) ) ) }