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): wait for quiet cycle completion

cyhdf8ad8d3c922
diff --git a/tests/test_watches.py b/tests/test_watches.py
index 98c09e953..c926559ce 100644
--- a/tests/test_watches.py
+++ b/tests/test_watches.py
@@ -1291,8 +1291,13 @@ def test_managed_watch_service_forever_no_event_exit_rearms_without_follow_up(tm
)
async def _run() -> None:
- service.start()
- await asyncio.sleep(0.08)
+ await _start_watch_service(service)
+ deadline = asyncio.get_running_loop().time() + 2
+ while asyncio.get_running_loop().time() < deadline:
+ saved = store.get_watch(watch.id)
+ if saved is not None and saved.last_exit_code == NO_EVENT_EXIT_CODE:
+ break
+ await asyncio.sleep(0.01)
await service.stop()
asyncio.run(_run())