mirror of
https://github.com/gofiber/storage.git
synced 2025-11-03 02:43:22 +08:00
chore: remove wait strategy, as the config for host lookup is disabled
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
||||
|
||||
"github.com/testcontainers/testcontainers-go"
|
||||
"github.com/testcontainers/testcontainers-go/modules/scylladb"
|
||||
"github.com/testcontainers/testcontainers-go/wait"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -29,13 +28,7 @@ func newTestStore(t testing.TB) (*Storage, error) {
|
||||
|
||||
ctx := context.Background()
|
||||
|
||||
c, err := scylladb.Run(
|
||||
ctx,
|
||||
img,
|
||||
testcontainers.WithWaitStrategy(
|
||||
wait.ForLog(`.*initialization completed.*`).AsRegexp().WithStartupTimeout(15*time.Second),
|
||||
),
|
||||
)
|
||||
c, err := scylladb.Run(ctx, img)
|
||||
testcontainers.CleanupContainer(t, c)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user