Extending startup timeout for SQL Server (other databases functioning fine).
This commit is contained in:
parent
e5d4617ce9
commit
618d8a5723
|
@ -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) {
|
||||||
|
|
|
@ -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)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue