The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: seed-compensation fake uses discard_unadmitted_session; hosted auth probe waits are load-tolerant
teknium1cc1eab12c0f7
diff --git a/tests/gateway/fixtures/hosted_auth_probe.py b/tests/gateway/fixtures/hosted_auth_probe.pyindex 8a309bb4bb4..dea2f240d59 100644--- a/tests/gateway/fixtures/hosted_auth_probe.py+++ b/tests/gateway/fixtures/hosted_auth_probe.py@@ -212,7 +212,7 @@ def probe(tmp_path):assert sibling['result']['driver_status']['counts'].get('running') == 1, siblingmodel.release.set()for actor, ws, _ in actors:- async with asyncio.timeout(30):+ async with asyncio.timeout(90):while True:state = await rpc(ws, 'groups.state', room_id=actor + '-room')counts = state['result']['driver_status']['counts']@@ -224,7 +224,7 @@ def probe(tmp_path):sent = await rpc(alice, 'groups.send', room_id='alice-room', event_id='approval',payload={'text': '@two APPROVE_HOSTED', 'thread_id': 'approval-thread'})assert sent['result']['accepted'], sent- async with asyncio.timeout(30):+ async with asyncio.timeout(90):while True:state = await rpc(alice, 'groups.state', room_id='alice-room')actions = state['result']['driver_status']['pending_actions']@@ -239,7 +239,7 @@ def probe(tmp_path):assert denied.get('error', {}).get('message') == 'permission_denied', deniedaccepted = await rpc(alice, 'groups.approve', room_id='alice-room', choice='once', **params)assert accepted.get('result', {}).get('approved'), accepted- async with asyncio.timeout(30):+ async with asyncio.timeout(90):while removal.exists():await asyncio.sleep(.1)diff --git a/tests/tui_gateway/test_tui_gateway_server.py b/tests/tui_gateway/test_tui_gateway_server.pyindex fed974359cf..6e3d395613c 100644--- a/tests/tui_gateway/test_tui_gateway_server.py+++ b/tests/tui_gateway/test_tui_gateway_server.py@@ -16075,7 +16075,7 @@ def test_session_create_seed_failure_after_row_compensates(monkeypatch):def append_messages_batch(self, session_id, messages, **kwargs):raise RuntimeError("transcript write failed")- def delete_session(self, session_id):+ def discard_unadmitted_session(self, session_id):seen["deleted"] = session_idreturn True