mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
verify command
This commit is contained in:
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…
x
Reference in New Issue
Block a user