mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
testutil/daemon: remove unused FindContainerIP
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
(cherry picked from commit d0de293513)
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
@@ -23,14 +23,3 @@ func (d *Daemon) ActiveContainers(ctx context.Context, t testing.TB) []string {
|
|||||||
}
|
}
|
||||||
return ids
|
return ids
|
||||||
}
|
}
|
||||||
|
|
||||||
// FindContainerIP returns the ip of the specified container
|
|
||||||
func (d *Daemon) FindContainerIP(t testing.TB, id string) string {
|
|
||||||
t.Helper()
|
|
||||||
cli := d.NewClientT(t)
|
|
||||||
defer cli.Close()
|
|
||||||
|
|
||||||
i, err := cli.ContainerInspect(context.Background(), id)
|
|
||||||
assert.NilError(t, err)
|
|
||||||
return i.NetworkSettings.IPAddress
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user