From a7ad1969403b2e99ed51cf4ed691becfa7f141fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail?= Date: Wed, 6 Nov 2024 10:25:58 +0300 Subject: [PATCH] Root Test --- management/server/testutil/store.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/management/server/testutil/store.go b/management/server/testutil/store.go index 04e4293ae..f3e3b1717 100644 --- a/management/server/testutil/store.go +++ b/management/server/testutil/store.go @@ -38,9 +38,14 @@ func CreateMyDB() (func(), error) { log.Printf("[DEBUG] CreateMyDB") ctx := context.Background() - c, err := mysql.Run(ctx, "mysql:8.0.36", testcontainers.WithWaitStrategyAndDeadline(30*time.Second, - wait.ForLog("database system is ready to accept connections"). - WithOccurrence(2).WithStartupTimeout(30*time.Second)), + c, err := mysql.Run(ctx, + "mysql:8.0.36", + mysql.WithDatabase("foo"), + mysql.WithUsername("root"), + mysql.WithPassword(""), + testcontainers.WithWaitStrategy( + wait.ForLog("database system is ready to accept connections"). + WithOccurrence(1).WithStartupTimeout(30*time.Second)), ) log.Printf("[DEBUG] CreateMyDB - 2")