Skip to content

Commit 8ed6bfc

Browse files
committed
Replace usage of deprecated docker types
This is a backwards incompatible change, but there don't seem to be any public imports: https://pkg.go.dev/github.com/golang-migrate/migrate/[email protected]/testing?tab=importedby
1 parent 0a17402 commit 8ed6bfc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

testing/docker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type DockerContainer struct {
6464
Cmd []string
6565
ContainerId string
6666
ContainerName string
67-
ContainerJSON dockertypes.ContainerJSON
67+
ContainerJSON container.InspectResponse
6868
containerInspected bool
6969
keepForDebugging bool
7070
}
@@ -269,7 +269,7 @@ func (d *DockerContainer) PortFor(cPort int) uint {
269269
return port
270270
}
271271

272-
func (d *DockerContainer) NetworkSettings() dockertypes.NetworkSettings {
272+
func (d *DockerContainer) NetworkSettings() dockercontainer.NetworkSettings {
273273
if d == nil {
274274
panic("Cannot get network settings for a nil *DockerContainer")
275275
}

testing/testing.go

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

10-
dockertypes "github.com/docker/docker/api/types"
10+
dockercontainer "github.com/docker/docker/api/types/container"
1111
)
1212

1313
type IsReadyFunc func(Instance) bool
@@ -98,6 +98,6 @@ type Instance interface {
9898
Host() string
9999
Port() uint
100100
PortFor(int) uint
101-
NetworkSettings() dockertypes.NetworkSettings
101+
NetworkSettings() dockercontainer.NetworkSettings
102102
KeepForDebugging()
103103
}

0 commit comments

Comments
 (0)