From 6f55fd65da8c50d36ca97654a920fb075076f125 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 20 Aug 2019 10:42:44 +0200 Subject: [PATCH] [FIX] mail: correct test adaptation to async version Oversight of previous forward-port. --- addons/mail/static/tests/chatter_tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/tests/chatter_tests.js b/addons/mail/static/tests/chatter_tests.js index 884fc79fee6..3296a84ab0d 100644 --- a/addons/mail/static/tests/chatter_tests.js +++ b/addons/mail/static/tests/chatter_tests.js @@ -1198,7 +1198,7 @@ QUnit.test('chatter: new message notification from document', async function (as }; const notifications = [ [['myDB', 'ir.needaction'], message] ]; form.call('bus_service', 'trigger', 'notification', notifications); - await testUtils.nextMicrotaskTick(); + await testUtils.nextTick(); assert.strictEqual( thread.getUnreadCounter(), 1,