From c231e0a64f051c354fcd9073b0dcf06bf2d8a745 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Thu, 16 Jun 2022 10:20:07 -0700 Subject: [PATCH] Fix log test --- canonicallog/canonicallog_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/canonicallog/canonicallog_test.go b/canonicallog/canonicallog_test.go index 0acb419..9332ee4 100644 --- a/canonicallog/canonicallog_test.go +++ b/canonicallog/canonicallog_test.go @@ -9,8 +9,8 @@ import ( ) func TestLogs(t *testing.T) { - LogMisbehavingPeer(test.RandPeerIDFatal(t), multiaddr.StringCast("/ip4/1.2.3.4"), fmt.Errorf("something"), "hi") - LogMisbehavingPeerNetAddr(test.RandPeerIDFatal(t), dummyNetAddr{}, fmt.Errorf("something"), "hi") + LogMisbehavingPeer(test.RandPeerIDFatal(t), multiaddr.StringCast("/ip4/1.2.3.4"), "somecomponent", fmt.Errorf("something"), "hi") + LogMisbehavingPeerNetAddr(test.RandPeerIDFatal(t), dummyNetAddr{}, "somecomponent", fmt.Errorf("something"), "hi") } type dummyNetAddr struct{}