The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(auxiliary): tighten the Timer-never-closes-a-real-SDK-stream asserts
kshitijk4poor53dacc4e51f3
diff --git a/tests/agent/test_codex_aux_timeout_fd_ownership.py b/tests/agent/test_codex_aux_timeout_fd_ownership.pyindex a9febd9eab4..4a74df05422 100644--- a/tests/agent/test_codex_aux_timeout_fd_ownership.py+++ b/tests/agent/test_codex_aux_timeout_fd_ownership.py@@ -177,10 +177,8 @@ class TestCodexAuxiliaryTimeoutFdOwnership:timeout=300,)- time.sleep(0.2)stranger = [(a, tid) for a, tid in events if tid != owner_tid]- assert ("stream.sock.shutdown", stranger[0][1]) in events, events- assert all(a == "stream.sock.shutdown" for a, _ in stranger), f"stranger-thread FD release: {stranger}"+ assert stranger and all(a == "stream.sock.shutdown" for a, _ in stranger), f"stranger-thread FD release: {stranger}"# The owner released the stream (and with it the socket) on unwind.assert ("stream.close", owner_tid) in events, eventsassert ("client.close", owner_tid) in client_events, client_events