mirror of https://github.com/v2ray/v2ray-core
fix test break
parent
0bca6e8657
commit
d025b8d48f
|
@ -51,7 +51,7 @@ func TestSinglePacket(t *testing.T) {
|
||||||
data2Send := "Data to be sent to remote"
|
data2Send := "Data to be sent to remote"
|
||||||
payload := alloc.NewLocalBuffer(2048).Clear().Append([]byte(data2Send))
|
payload := alloc.NewLocalBuffer(2048).Clear().Append([]byte(data2Send))
|
||||||
|
|
||||||
go freedom.Dispatch(v2net.TCPDestination(v2net.LocalHostIP, port), payload, traffic)
|
go freedom.Dispatch(v2net.TCPDestination(v2net.LocalHostIP, tcpServer.Port), payload, traffic)
|
||||||
traffic.InboundInput().Close()
|
traffic.InboundInput().Close()
|
||||||
|
|
||||||
respPayload, err := traffic.InboundOutput().Read()
|
respPayload, err := traffic.InboundOutput().Read()
|
||||||
|
|
Loading…
Reference in New Issue