mirror of https://github.com/v2ray/v2ray-core
update test case
parent
c32f1a0152
commit
906d846c2e
|
@ -52,7 +52,7 @@ func TestDialAndListen(t *testing.T) {
|
||||||
go func() {
|
go func() {
|
||||||
clientSend := make([]byte, 1024*1024)
|
clientSend := make([]byte, 1024*1024)
|
||||||
rand.Read(clientSend)
|
rand.Read(clientSend)
|
||||||
clientConn.Write(clientSend)
|
go clientConn.Write(clientSend)
|
||||||
|
|
||||||
clientReceived := make([]byte, 1024*1024)
|
clientReceived := make([]byte, 1024*1024)
|
||||||
nBytes, _ := io.ReadFull(clientConn, clientReceived)
|
nBytes, _ := io.ReadFull(clientConn, clientReceived)
|
||||||
|
|
Loading…
Reference in New Issue