Sunday, September 13, 2026
1 change · saas-19.3
Resolved issues and error corrections
This fix adjusts an automated mail discussion test so it waits for the channel subscription at the right time. It reduces random test failures in the release process without changing the user-facing mail experience.
Original PR description
Backport of 9a8f127a6c9a (odoo/odoo#280680), currently on saas-19.4 and on master (6da9738c26e2). Before this commit, the discuss test "Message shows up even if channel data is incomplete" failed on runbot with "Websocket subscription not received.". This happens because waitUntilSubscribe() only resolves on a subscription received after it is called, and the test calls it after running all timers. The forced channel update is debounced, so that timer run sends the subscription, and the wait then times out. This commit calls waitUntilSubscribe() before forcing the channel update, so the subscription that update sends resolves the wait. https://runbot.odoo.com/odoo/error/947146 Forward-Port-Of: odoo/odoo#287969 Forward-Port-Of: odoo/odoo#287864