From 871bbde89fab7f5ea3dee8bf2a8a01287dd1b38c Mon Sep 17 00:00:00 2001 From: Kent Gruber Date: Wed, 2 May 2018 14:08:57 -0400 Subject: [PATCH] make coherent lan test due to changes in aliases messing with the Aliases test seems to cause issues for the lan test, this fixes the error --- network/lan_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/lan_test.go b/network/lan_test.go index 7cdc7ef8..ce30d1ba 100644 --- a/network/lan_test.go +++ b/network/lan_test.go @@ -112,9 +112,9 @@ func TestAliases(t *testing.T) { exampleAlias := "picat" exampleLAN := buildExampleLAN() exampleEndpoint := buildExampleEndpoint() - exampleLAN.hosts[exampleEndpoint.HwAddress] = exampleEndpoint + exampleLAN.hosts["pi:ca:tw:as:he:re"] = exampleEndpoint exp := exampleAlias - got := exampleLAN.Aliases().Get(exampleEndpoint.HwAddress) + got := exampleLAN.Aliases().Get("pi:ca:tw:as:he:re") if got != exp { t.Fatalf("expected '%v', got '%v'", exp, got) }