mirror of
https://github.com/penpot/penpot.git
synced 2026-11-16 15:11:17 +00:00
The subscription to the bus reaches redis through an asynchronous agent action, so a message published right after the connection opens can be lost before redis knows the subscription. The delivery assertions of the websocket tests published once and bet on winning that race, which fails on a loaded CI runner. `poll-published!` publishes, drains a window and publishes again only when the window saw nothing, up to three attempts. The assertion still proves that the client receives a message it published, and the negative assertions keep the single drained window they need. A test pins the retry so it does not go back to a single publish. AI-assisted-by: deepseek-v4.1-flash