summaryrefslogtreecommitdiff
path: root/test/integration/container.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/container.go')
-rw-r--r--test/integration/container.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/integration/container.go b/test/integration/container.go
index 651fcf5..0a210dd 100644
--- a/test/integration/container.go
+++ b/test/integration/container.go
@@ -10,6 +10,7 @@ import (
"github.com/docker/go-connections/nat"
"github.com/stretchr/testify/require"
"github.com/testcontainers/testcontainers-go"
+ "github.com/testcontainers/testcontainers-go/log"
"github.com/testcontainers/testcontainers-go/wait"
"github.com/xlgmokha/x/pkg/env"
"github.com/xlgmokha/x/pkg/x"
@@ -21,7 +22,8 @@ func NewContainer(t *testing.T, ctx context.Context, envVars map[string]string)
ctx,
env.Fetch("IMAGE_TAG", "sparkled:invalid"),
testcontainers.WithEnv(envVars),
- testcontainers.WithLogConsumers(&LogConsumer{t: t}),
+ testcontainers.WithLogConsumers(&Logger{TB: t}),
+ testcontainers.WithLogger(log.TestLogger(t)),
testcontainers.WithWaitStrategy(
wait.ForLog("Listening on"),
wait.ForListeningPort(x.Must(nat.NewPort("tcp", "10000"))),