fix buggy addr equal in test

This commit is contained in:
Steven Allen 2018-10-24 07:45:45 -07:00
parent 7eaeeaa9fe
commit 63256192d7
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func TestHostAddrsFactory(t *testing.T) {
if len(addrs) != 1 {
t.Fatalf("expected 1 addr, got %d", len(addrs))
}
if addrs[0] != maddr {
if !addrs[0].Equal(maddr) {
t.Fatalf("expected %s, got %s", maddr.String(), addrs[0].String())
}
}