Skip to content

Commit 9bfe290

Browse files
committed
fix tests
1 parent dcae856 commit 9bfe290

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

backend_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/docker/go-connections/nat"
1110
"github.com/google/uuid"
1211
"github.com/hashicorp/vault/sdk/logical"
1312
"github.com/mitchellh/mapstructure"
@@ -507,7 +506,7 @@ func startKeycloak(t *testing.T, ctx context.Context, image string, cmd []string
507506
ContainerRequest: testcontainers.ContainerRequest{
508507
Image: image,
509508
ExposedPorts: []string{"8080/tcp"},
510-
WaitingFor: wait.ForHTTP("/").WithMethod("GET").WithPort(nat.Port("8080")).WithStartupTimeout(time.Second * 90),
509+
WaitingFor: wait.ForHTTP("/").WithMethod("GET").WithPort("8080").WithStartupTimeout(time.Second * 90),
511510
Env: env,
512511
Networks: []string{
513512
networkName,

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.26.2
55
require (
66
github.com/Nerzal/gocloak/v13 v13.9.0
77
github.com/avast/retry-go/v5 v5.0.0
8-
github.com/docker/go-connections v0.7.0
98
github.com/google/uuid v1.6.0
109
github.com/hashicorp/go-hclog v1.6.3
1110
github.com/hashicorp/vault/api v1.23.0
@@ -39,6 +38,7 @@ require (
3938
github.com/containerd/platforms v0.2.1 // indirect
4039
github.com/cpuguy83/dockercfg v0.3.2 // indirect
4140
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
41+
github.com/docker/go-connections v0.7.0 // indirect
4242
github.com/docker/go-units v0.5.0 // indirect
4343
github.com/ebitengine/purego v0.10.0 // indirect
4444
github.com/evanphx/json-patch/v5 v5.9.11 // indirect

0 commit comments

Comments
 (0)