From 901434f0a18da8a520d994520b82bbb06b86cb0e Mon Sep 17 00:00:00 2001 From: V2Ray Date: Mon, 7 Sep 2015 17:29:20 +0200 Subject: [PATCH] format code --- io/socks/socks_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/io/socks/socks_test.go b/io/socks/socks_test.go index 3ec7c5835..e96c5668f 100644 --- a/io/socks/socks_test.go +++ b/io/socks/socks_test.go @@ -5,14 +5,14 @@ import ( ) func TestAuthenticationResponseToBytes(t *testing.T) { - socksVersion := uint8(5) - authMethod := uint8(1) + socksVersion := uint8(5) + authMethod := uint8(1) response := Socks5AuthenticationResponse{socksVersion, authMethod} bytes := response.ToBytes() if bytes[0] != socksVersion { t.Errorf("Unexpected Socks version %d", bytes[0]) } - if bytes[1] != authMethod { - t.Errorf("Unexpected Socks auth method %d", bytes[1]) - } + if bytes[1] != authMethod { + t.Errorf("Unexpected Socks auth method %d", bytes[1]) + } }