mirror of https://github.com/v2ray/v2ray-core
parent
9100a78914
commit
6e293f492c
|
@ -39,6 +39,7 @@ func TestUDPEncoding(t *testing.T) {
|
|||
assert(decodedData.Bytes(), Equals, data.Bytes())
|
||||
assert(decodedRequest.Address, Equals, request.Address)
|
||||
assert(decodedRequest.Port, Equals, request.Port)
|
||||
assert(decodedRequest.Command, Equals, request.Command)
|
||||
}
|
||||
|
||||
func TestTCPRequest(t *testing.T) {
|
||||
|
@ -118,6 +119,7 @@ func TestTCPRequest(t *testing.T) {
|
|||
assert(err, IsNil)
|
||||
assert(decodedRequest.Address, Equals, request.Address)
|
||||
assert(decodedRequest.Port, Equals, request.Port)
|
||||
assert(decodedRequest.Command, Equals, request.Command)
|
||||
|
||||
decodedData, err := reader.ReadMultiBuffer()
|
||||
assert(err, IsNil)
|
||||
|
|
Loading…
Reference in New Issue