Skip to content

Commit

Permalink
Merge pull request #463 from libp2p/fix/basic-host-test
Browse files Browse the repository at this point in the history
fix buggy addr equal in test
  • Loading branch information
Stebalien authored Oct 24, 2018
2 parents 7eaeeaa + 6325619 commit 30e4db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/host/basic/basic_host_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
Expand Down

0 comments on commit 30e4db2

Please sign in to comment.