Browse Source

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

fix buggy addr equal in test
pull/464/head
Steven Allen 6 years ago
committed by GitHub
parent
commit
30e4db2415
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      p2p/host/basic/basic_host_test.go

2
p2p/host/basic/basic_host_test.go

@ -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())
}
}

Loading…
Cancel
Save