Browse Source

update test case

v2ray 9 năm trước cách đây
mục cha
commit
906d846c2e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      transport/internet/kcp/kcp_test.go

+ 1 - 1
transport/internet/kcp/kcp_test.go

@@ -52,7 +52,7 @@ func TestDialAndListen(t *testing.T) {
 		go func() {
 			clientSend := make([]byte, 1024*1024)
 			rand.Read(clientSend)
-			clientConn.Write(clientSend)
+			go clientConn.Write(clientSend)
 
 			clientReceived := make([]byte, 1024*1024)
 			nBytes, _ := io.ReadFull(clientConn, clientReceived)