Remove redunent code

pull/55/head
V2Ray 2015-11-02 23:55:10 +01:00
parent 8fbb9762db
commit 1edd0e660e
1 changed files with 1 additions and 5 deletions

View File

@ -28,11 +28,7 @@ func TestSocks4AuthenticationRequestRead(t *testing.T) {
func TestSocks4AuthenticationResponseToBytes(t *testing.T) { func TestSocks4AuthenticationResponseToBytes(t *testing.T) {
assert := unit.Assert(t) assert := unit.Assert(t)
response := &Socks4AuthenticationResponse{ response := NewSocks4AuthenticationResponse(byte(0x10), 443, []byte{1, 2, 3, 4})
result: byte(0x10),
port: 443,
ip: []byte{1, 2, 3, 4},
}
buffer := alloc.NewSmallBuffer().Clear() buffer := alloc.NewSmallBuffer().Clear()
defer buffer.Release() defer buffer.Release()