WIP-CHECKPOINT[auth-refactor]: 固化工程师崩溃前部分成果 + 同树其他未提交WIP(仅源码,不含密钥/二进制)-- 待重激活工程师续作
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
import asyncio
|
||||
import sys
|
||||
sys.path.insert(0, "/app")
|
||||
from app.config import settings
|
||||
from app.dependencies import get_redis
|
||||
|
||||
async def test():
|
||||
print("Testing Redis using the new config...")
|
||||
try:
|
||||
r = await get_redis()
|
||||
result = await r.ping()
|
||||
print(f"Ping result: {result}")
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
|
||||
asyncio.run(test())
|
||||
Reference in New Issue
Block a user