Unverified Commit 30e4db24 authored by Steven Allen's avatar Steven Allen Committed by GitHub
Browse files

Merge pull request #463 from libp2p/fix/basic-host-test

fix buggy addr equal in test
parents 7eaeeaa9 63256192
...@@ -83,7 +83,7 @@ func TestHostAddrsFactory(t *testing.T) { ...@@ -83,7 +83,7 @@ func TestHostAddrsFactory(t *testing.T) {
if len(addrs) != 1 { if len(addrs) != 1 {
t.Fatalf("expected 1 addr, got %d", len(addrs)) 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()) t.Fatalf("expected %s, got %s", maddr.String(), addrs[0].String())
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment