Fix log test

This commit is contained in:
Marco Munizaga 2022-06-16 10:20:07 -07:00
parent bdfc1932c4
commit c231e0a64f

View File

@ -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{}