mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
parent
e6f617a43f
commit
c590cc02f4
15 changed files with 333 additions and 101 deletions
|
@ -18,8 +18,8 @@ func connReadStub(conn net.Conn) {
|
|||
func TestPeerHandshake(t *testing.T) {
|
||||
server, client := net.Pipe()
|
||||
|
||||
tcpS := NewTCPPeer(server, newTestServer(t))
|
||||
tcpC := NewTCPPeer(client, newTestServer(t))
|
||||
tcpS := NewTCPPeer(server, newTestServer(t, ServerConfig{}))
|
||||
tcpC := NewTCPPeer(client, newTestServer(t, ServerConfig{}))
|
||||
|
||||
// Something should read things written into the pipe.
|
||||
go connReadStub(tcpS.conn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue