Update store.go

This commit is contained in:
İsmail
2024-11-05 23:36:37 +03:00
parent e2db6210e2
commit 60cde76aad

View File

@@ -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)),
)