diff options
Diffstat (limited to 'runsc/test/integration')
-rw-r--r-- | runsc/test/integration/integration_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runsc/test/integration/integration_test.go b/runsc/test/integration/integration_test.go index c286e48d2..c6b546a56 100644 --- a/runsc/test/integration/integration_test.go +++ b/runsc/test/integration/integration_test.go @@ -162,8 +162,8 @@ func TestConnectToSelf(t *testing.T) { } defer d.CleanUp() - // Finds IP address for eth0. - ip, err := d.Exec("/bin/sh", "-c", "ifconfig eth0 | grep -E -o \".*inet [^ ]+\" | cut -d: -f2") + // Finds IP address for host. + ip, err := d.Exec("/bin/sh", "-c", "cat /etc/hosts | grep ${HOSTNAME} | awk '{print $1}'") if err != nil { t.Fatal("docker exec failed:", err) } |