[FIX] mail: avoid race condition in test

This commit is contained in:
Christophe Simonis
2019-06-05 09:08:31 +00:00
parent 76275c2c12
commit ce4165780a
@@ -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();
});