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:
Albin Kerouanton
2025-08-28 15:17:53 +02:00
parent 65a1687e3d
commit 01b27f6056

View File

@@ -23,14 +23,3 @@ func (d *Daemon) ActiveContainers(ctx context.Context, t testing.TB) []string {
}
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
}