You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
711 B

#!/usr/bin/env python3
"""
WebSocket第二次连接事件推送修复功能快速测试脚本
"""
import asyncio
import sys
import os
# 添加项目根目录到Python路径
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from test_websocket_second_connection_fix import main
if __name__ == "__main__":
print("🚀 启动WebSocket第二次连接事件推送修复功能测试...")
print("=" * 60)
try:
asyncio.run(main())
except KeyboardInterrupt:
print("\n⏹️ 测试被用户中断")
except Exception as e:
print(f"\n❌ 测试执行失败: {e}")
sys.exit(1)
print("=" * 60)
print("🏁 测试完成")