Extending startup timeout for SQL Server (other databases functioning fine).

This commit is contained in:
mike12345567 2024-12-16 18:53:41 +00:00
parent e5d4617ce9
commit 618d8a5723
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ export function getContainerByImage(image: string) {
} }
function getContainerByName(name: 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) { export function getContainerById(id: string) {

View File

@ -24,7 +24,7 @@ export async function getDatasource(): Promise<Datasource> {
.withWaitStrategy( .withWaitStrategy(
Wait.forSuccessfulCommand( Wait.forSuccessfulCommand(
"/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Password_123 -q 'SELECT 1'" "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Password_123 -q 'SELECT 1'"
).withStartupTimeout(20000) ).withStartupTimeout(60000)
) )
) )
} }