mirror of
https://github.com/NCBM/plyngent.git
synced 2026-07-25 08:04:57 +08:00
test/tools: catalog, grants, and async tool helpers
This commit is contained in:
@@ -126,7 +126,7 @@ async def test_parallel_tool_calls_run_concurrently() -> None:
|
||||
gate = asyncio.Event()
|
||||
wait_timeout = 2.0
|
||||
|
||||
@tool
|
||||
@tool(register=False)
|
||||
async def slow_a() -> str:
|
||||
nonlocal started
|
||||
started += 1
|
||||
@@ -135,7 +135,7 @@ async def test_parallel_tool_calls_run_concurrently() -> None:
|
||||
_ = await asyncio.wait_for(gate.wait(), timeout=wait_timeout)
|
||||
return "a"
|
||||
|
||||
@tool
|
||||
@tool(register=False)
|
||||
async def slow_b() -> str:
|
||||
nonlocal started
|
||||
started += 1
|
||||
|
||||
Reference in New Issue
Block a user