瀏覽代碼

format code

V2Ray 10 年之前
父節點
當前提交
901434f0a1
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      io/socks/socks_test.go

+ 5 - 5
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])
+	}
 }