summaryrefslogtreecommitdiffhomepage
path: root/netboot
diff options
context:
space:
mode:
authorinsomniac <insomniacslk@users.noreply.github.com>2019-06-20 09:52:40 +0100
committerPablo Mazzini <pmazzini@gmail.com>2019-06-20 09:52:40 +0100
commitb4283850189193486e09713e2a1b505e4ce2d067 (patch)
tree088e3a5fe83ba0f7f65f0da5845fe9e49a73e879 /netboot
parent797593413f957bdc1ac7896a3cfc99333ec1bc00 (diff)
Fix TravisCI build (#297)
Diffstat (limited to 'netboot')
-rw-r--r--netboot/netconf_integ_test.go6
1 files changed, 4 insertions, 2 deletions
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)