Skip to content

Commit 7cabe12

Browse files
committed
Some updates to health check
1 parent 7f2031c commit 7cabe12

File tree

1 file changed

+3
-1
lines changed
  • packages/cubejs-testing-shared/src/db-container-runners

1 file changed

+3
-1
lines changed

packages/cubejs-testing-shared/src/db-container-runners/mssql.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ export class MssqlDbRunner extends DbRunnerAbstract {
66
public static startContainer(options: DBRunnerContainerOptions) {
77
const version = process.env.TEST_MSSQL_VERSION || options.version || '2019-latest';
88

9+
const logMsg = version === '2019-latest' ? 'Service Broker manager has started' : 'SQL Server is now ready for client connections';
10+
911
const container = new GenericContainer(`mcr.microsoft.com/mssql/server:${version}`)
1012
.withEnvironment({
1113
ACCEPT_EULA: 'Y',
1214
MSSQL_SA_PASSWORD: process.env.TEST_DB_PASSWORD || 'Test1test',
1315
})
1416
.withExposedPorts(1433)
15-
.withWaitStrategy(Wait.forLogMessage('Service Broker manager has started'))
17+
.withWaitStrategy(Wait.forLogMessage(logMsg))
1618
.withStartupTimeout(30 * 1000);
1719

1820
if (options.volumes) {

0 commit comments

Comments
 (0)