diff --git a/network/net_test.go b/network/net_test.go index 9e435803..7604d4c8 100644 --- a/network/net_test.go +++ b/network/net_test.go @@ -46,3 +46,17 @@ func TestParseTargets(t *testing.T) { t.Fatalf("expected '%d', got '%d'", 0, len(macs)) } } + +func TestBuildEndpointFromInterface(t *testing.T) { + ifaces, err := net.Interfaces() + if err != nil { + t.Error(err) + } + if len(ifaces) <= 0 { + t.Error("Unable to find any network interfaces to run test with.") + } + _, err = buildEndpointFromInterface(ifaces[0]) + if err != nil { + t.Error(err) + } +}