X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=p2p%2Fconnection%2Fconnection_test.go;h=a2983674f89cc22d0fe427b41aafdb13b5814f53;hp=1a221260ebd03248c21af13697d32b8ee40d5ade;hb=f6ec2b987c394f065e527bcdf5942d1f9f0dad66;hpb=bcb18f4ce26ec40aefb2b84107274b6aa9efabfd diff --git a/p2p/connection/connection_test.go b/p2p/connection/connection_test.go index 1a221260..a2983674 100644 --- a/p2p/connection/connection_test.go +++ b/p2p/connection/connection_test.go @@ -7,7 +7,6 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/tendermint/tmlibs/log" ) func createMConnection(conn net.Conn) *MConnection { @@ -16,14 +15,12 @@ func createMConnection(conn net.Conn) *MConnection { onError := func(r interface{}) { } c := createMConnectionWithCallbacks(conn, onReceive, onError) - c.SetLogger(log.TestingLogger()) return c } func createMConnectionWithCallbacks(conn net.Conn, onReceive func(chID byte, msgBytes []byte), onError func(r interface{})) *MConnection { chDescs := []*ChannelDescriptor{&ChannelDescriptor{ID: 0x01, Priority: 1, SendQueueCapacity: 1}} c := NewMConnectionWithConfig(conn, chDescs, onReceive, onError, DefaultMConnConfig()) - c.SetLogger(log.TestingLogger()) return c }