Skip to content

Commit d0de293

Browse files
committed
testutil/daemon: remove unused FindContainerIP
Signed-off-by: Albin Kerouanton <[email protected]>
1 parent 80bb864 commit d0de293

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

testutil/daemon/container.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,3 @@ func (d *Daemon) ActiveContainers(ctx context.Context, t testing.TB) []string {
2323
}
2424
return ids
2525
}
26-
27-
// FindContainerIP returns the ip of the specified container
28-
func (d *Daemon) FindContainerIP(t testing.TB, id string) string {
29-
t.Helper()
30-
cli := d.NewClientT(t)
31-
defer cli.Close()
32-
33-
i, err := cli.ContainerInspect(context.Background(), id)
34-
assert.NilError(t, err)
35-
return i.NetworkSettings.IPAddress
36-
}

0 commit comments

Comments
 (0)