fix: 修复聊天系统编译错误
- 修复 WebSocketManager/SocketIOClient 函数缩进错误 - 重命名 is_connected() 避免与 Object 基类冲突 - 修复 tscn 文件多余前导空格 - 修复测试文件 GUT 断言函数调用 - 添加 GUT 测试框架
This commit is contained in:
@@ -36,7 +36,7 @@ func after_each():
|
||||
func test_socket_initialization():
|
||||
# 测试客户端初始化
|
||||
assert_not_null(socket_client, "SocketIOClient 应该成功初始化")
|
||||
assert_eq(socket_client.is_connected(), false, "初始状态应该是未连接")
|
||||
assert_eq(socket_client.is_socket_connected(), false, "初始状态应该是未连接")
|
||||
|
||||
# ============================================================================
|
||||
# 连接状态测试
|
||||
|
||||
Reference in New Issue
Block a user