Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

test(watches): await timeout terminal state (#1833)

Call White69a8ec651045
diff --git a/tests/test_watches.py b/tests/test_watches.py
index e120cd6cb..aa1781d2d 100644
--- a/tests/test_watches.py
+++ b/tests/test_watches.py
@@ -895,8 +895,11 @@ def test_managed_watch_service_forever_timeout_disables_and_enqueues_failure(tmp
async def _run() -> None:
await _start_watch_service(service)
- await asyncio.sleep(0.2)
- await service.stop()
+ watch_task = service._active_tasks[watch.id]
+ try:
+ await asyncio.wait_for(asyncio.shield(watch_task), timeout=10)
+ finally:
+ await service.stop()
asyncio.run(_run())