summaryrefslogtreecommitdiff
path: root/addons/mail
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-06-05 09:08:31 +0000
committerChristophe Simonis <chs@odoo.com>2019-06-05 09:08:31 +0000
commitce4165780ae500baa3ba30bf96fa7ac6fa4e2a2a (patch)
tree220c174512fb79defa686f4e970877e2253bf457 /addons/mail
parent76275c2c1276b1cef68d43ad015251aee175852f (diff)
[FIX] mail: avoid race condition in test
Diffstat (limited to 'addons/mail')
-rw-r--r--addons/mail/static/tests/chatter_tests.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/mail/static/tests/chatter_tests.js b/addons/mail/static/tests/chatter_tests.js
index 582448f1bc7..ea6b7adbd8b 100644
--- a/addons/mail/static/tests/chatter_tests.js
+++ b/addons/mail/static/tests/chatter_tests.js
@@ -1036,6 +1036,8 @@ QUnit.test('chatter: receive notif when document is open', async function (asser
assert.strictEqual(thread.getUnreadCounter(), 1,
"document thread should now have one unread message");
+ // do not destroy form too early. wait rendering to avoid race condition in service call.
+ await testUtils.nextTick();
form.destroy();
});