mirror of
https://github.com/agentuniverse-ai/agentUniverse.git
synced 2026-02-09 01:59:19 +08:00
1029-12
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
# @Email : fanen.lhy@antgroup.com
|
||||
# @FileName: test_framework_context.py
|
||||
|
||||
import asyncio
|
||||
import queue
|
||||
import time
|
||||
import threading
|
||||
@@ -28,7 +29,7 @@ def add(q: queue.Queue):
|
||||
|
||||
|
||||
async def async_add(q: queue.Queue):
|
||||
add(q)
|
||||
await asyncio.get_event_loop().run_in_executor(None, add, q)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
Reference in New Issue
Block a user