The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: wait for the member reply with tests.waiting.wait_until
Teknium9596fad5171a
diff --git a/tests/gateway/test_hosted_room_handoff_send.py b/tests/gateway/test_hosted_room_handoff_send.pyindex 3dd4fa8399f..3a6a6e8b5a4 100644--- a/tests/gateway/test_hosted_room_handoff_send.py+++ b/tests/gateway/test_hosted_room_handoff_send.py@@ -9,12 +9,12 @@ from __future__ import annotationsimport sqlite3import threading-import timefrom pathlib import Pathfrom types import SimpleNamespacefrom gateway import hosted_room_driver, hosted_roomsfrom gateway.hosted_rooms_gateway_import import handoff_gateway_id, import_standalone_rooms+from tests.waiting import wait_untilfrom tui_gateway.hosted_room_service import HostedRoomServiceMEMBERS = [{"member_id": "default", "profile": "default", "handle": "hermes"},@@ -85,9 +85,7 @@ def test_a_room_handed_to_the_gateway_takes_sends_and_wakes_its_members(tmp_pathservice.start()try:- deadline = time.monotonic() + 5- while "message.member" not in _kinds(target, "room-desk") and time.monotonic() < deadline:- time.sleep(0.01)+ wait_until(lambda: "message.member" in _kinds(target, "room-desk"), timeout=5, what="member reply")finally:assert service.stop(timeout=5.0)assert rpc.submits == ["ops"]