mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-22 21:39:08 +02:00
Root Test
This commit is contained in:
@@ -38,9 +38,14 @@ func CreateMyDB() (func(), error) {
|
|||||||
log.Printf("[DEBUG] CreateMyDB")
|
log.Printf("[DEBUG] CreateMyDB")
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
c, err := mysql.Run(ctx, "mysql:8.0.36", testcontainers.WithWaitStrategyAndDeadline(30*time.Second,
|
c, err := mysql.Run(ctx,
|
||||||
wait.ForLog("database system is ready to accept connections").
|
"mysql:8.0.36",
|
||||||
WithOccurrence(2).WithStartupTimeout(30*time.Second)),
|
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")
|
log.Printf("[DEBUG] CreateMyDB - 2")
|
||||||
|
|||||||
Reference in New Issue
Block a user