You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit fixes the im_status test suite which fails in a
non-deterministic fashion. Initially, those tests wait for the
first update of the presence (the one sent when the first connection
to the websocket is established).
Presence is updated when:
- Self persona status is offline.
- Bus notification is received for self with different value than the
one of this device (e.g. offline while away/online, away while online).
- The websocket connection is first established.
In those test, another subscription could happen according to the timing
of the `/mail/data` RPC which returns the initial status of the user as
offline.
This commit fixes this issue by setting an initial status on the current
user.
fixes runbot-229757
closesodoo#218454
X-original-commit: 9e0a2b3
Signed-off-by: Matthieu Stockbauer (tsm) <[email protected]>
0 commit comments