From b4283850189193486e09713e2a1b505e4ce2d067 Mon Sep 17 00:00:00 2001 From: insomniac Date: Thu, 20 Jun 2019 09:52:40 +0100 Subject: Fix TravisCI build (#297) --- netboot/netconf_integ_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'netboot') diff --git a/netboot/netconf_integ_test.go b/netboot/netconf_integ_test.go index 5f16782..30a7232 100644 --- a/netboot/netconf_integ_test.go +++ b/netboot/netconf_integ_test.go @@ -11,8 +11,10 @@ import ( "github.com/stretchr/testify/require" ) -// this assumes that eth0 exists and is configurable -var ifname = "eth0" +// Travis-CI uses ens4, and this test assumes that such interface +// exists and is configurable. If you are running this test locally, +// you may need to adjust this value. +var ifname = "ens4" func TestIfUp(t *testing.T) { iface, err := IfUp(ifname, 2*time.Second) -- cgit v1.2.3