Saturday, September 12, 2026
1 change · 19.0
Resolved issues and error corrections
This fix makes an automated mail discussion test run consistently by waiting for the subscription event at the right time. It reduces false test failures in Odoo's validation pipeline without changing customer-facing behavior.
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#287864