Skip to content

Commit 542231b

Browse files
Comment the rendezvous timeout fallback (CodeQL empty-except)
1 parent 849af05 commit 542231b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/conformance/test_observability.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,6 +2580,11 @@ async def _ask_body(_s: Any) -> dict[str, str]:
25802580
async with asyncio.timeout(5):
25812581
await gate.wait()
25822582
except TimeoutError:
2583+
# Best-effort rendezvous: if fewer asks run concurrently than
2584+
# total_asks the gate never fires, so the timeout releases this ask
2585+
# rather than deadlocking. Interleaving is then not forced, but the
2586+
# test still runs (and total_asks > 0 is asserted above, so the gate
2587+
# cannot degenerate silently).
25832588
pass
25842589
response = await provider.complete(list(messages_in))
25852590
return {stores_in: response.message.content or ""}

0 commit comments

Comments
 (0)