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
This commit is contained in:
Kent Gruber 2018-05-02 14:08:57 -04:00
parent 0b55b645b1
commit 871bbde89f

View file

@ -112,9 +112,9 @@ func TestAliases(t *testing.T) {
exampleAlias := "picat" exampleAlias := "picat"
exampleLAN := buildExampleLAN() exampleLAN := buildExampleLAN()
exampleEndpoint := buildExampleEndpoint() exampleEndpoint := buildExampleEndpoint()
exampleLAN.hosts[exampleEndpoint.HwAddress] = exampleEndpoint exampleLAN.hosts["pi:ca:tw:as:he:re"] = exampleEndpoint
exp := exampleAlias exp := exampleAlias
got := exampleLAN.Aliases().Get(exampleEndpoint.HwAddress) got := exampleLAN.Aliases().Get("pi:ca:tw:as:he:re")
if got != exp { if got != exp {
t.Fatalf("expected '%v', got '%v'", exp, got) t.Fatalf("expected '%v', got '%v'", exp, got)
} }