Skip to content

Commit a40733c

Browse files
author
Spencer Gray
committed
tests: Update test_queue_async to always wait for tools to finish.
1 parent ae24e5b commit a40733c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/interactions/chat/tools/runtime/test_queue_async.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ T["Tools"]["queue"]["can queue multiple async functions"] = function()
5656
},
5757
}
5858
tools:execute(chat, tool_call)
59-
vim.wait(2100)
59+
60+
while (chat.tool_orchestrator) do
61+
vim.wait(100)
62+
end
6063
]])
6164

6265
-- Test order
@@ -88,7 +91,9 @@ T["Tools"]["queue"]["can queue async function with sync function"] = function()
8891
},
8992
}
9093
tools:execute(chat, tool_call)
91-
vim.wait(1100)
94+
while (chat.tool_orchestrator) do
95+
vim.wait(100)
96+
end
9297
]])
9398

9499
-- Test order

0 commit comments

Comments
 (0)