mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-01-14 02:20:06 +08:00
Fix log test
This commit is contained in:
parent
bdfc1932c4
commit
c231e0a64f
@ -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{}
|
||||
|
Loading…
Reference in New Issue
Block a user