From 63256192d7c5a1bbe00807afbed93d9c14ddcd0a Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 24 Oct 2018 07:45:45 -0700 Subject: [PATCH] fix buggy addr equal in test --- p2p/host/basic/basic_host_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/host/basic/basic_host_test.go b/p2p/host/basic/basic_host_test.go index 27c81d552..affdec7b3 100644 --- a/p2p/host/basic/basic_host_test.go +++ b/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()) } }