The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(whatsapp): wait for the FIN, not the clock, in the TIME-WAIT test
Victor Kyriazakos58488ac7339c
diff --git a/tests/gateway/test_whatsapp_bridge_port_release.py b/tests/gateway/test_whatsapp_bridge_port_release.pyindex f24a72981f2..a9bf07958a7 100644--- a/tests/gateway/test_whatsapp_bridge_port_release.py+++ b/tests/gateway/test_whatsapp_bridge_port_release.py@@ -280,7 +280,8 @@ class TestListenerDiscovery:conn, _ = srv.accept()conn.close() # server side closes first -> TIME_WAIT on 127.0.0.1:<port>srv.close()- time.sleep(0.1)+ cli.settimeout(5)+ assert cli.recv(1) == b"" # wait for the server's FIN, not the clock (main's TIME-WAIT test does the same)cli.close()adapter = WhatsAppAdapter.__new__(WhatsAppAdapter)