From 0be00a1c525e880adc0273d72461a15a3030ba56 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Mon, 5 Oct 2015 17:03:26 +0200 Subject: [PATCH] Fix socks test --- proxy/socks/socks_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/socks/socks_test.go b/proxy/socks/socks_test.go index 416b5c8f4..f730d3e43 100644 --- a/proxy/socks/socks_test.go +++ b/proxy/socks/socks_test.go @@ -165,7 +165,7 @@ func TestSocksUdpSend(t *testing.T) { nBytes, err := conn.Read(response) assert.Error(err).IsNil() - assert.Bytes(response[:nBytes]).Equals(och.Data2Return) + assert.Bytes(response[10:nBytes]).Equals(och.Data2Return) assert.Bytes(data2Send).Equals(och.Data2Send.Bytes()) assert.String(och.Destination.String()).Equals("udp:8.8.4.4:53") }