diff --git a/management/server/testutil/store.go b/management/server/testutil/store.go index 62beda783..226bb6f55 100644 --- a/management/server/testutil/store.go +++ b/management/server/testutil/store.go @@ -38,7 +38,7 @@ func CreateMyDB() (func(), error) { log.Printf("[DEBUG] CreateMyDB") ctx := context.Background() - c, err := mysql.Run(ctx, "mysql:5.7.34", testcontainers.WithWaitStrategy( + c, err := mysql.Run(ctx, "mysql:5.7.34", testcontainers.WithWaitStrategyAndDeadline(180*time.Second, wait.ForLog("database system is ready to accept connections"). WithOccurrence(2).WithStartupTimeout(180*time.Second)), )