From f73098fcba2d3115d182e0648c579e2054f75cf8 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Mon, 18 Dec 2017 16:48:48 +0100 Subject: [PATCH] [FIX] test_mail: increment the query counter for employee too When searching the id mail.mail_activity_data_todo a request is done and should be taken into account by the assertQueryCount. This commit does just that... for the employee login. Thanks to the murphy's law, the test branch was green. --- addons/test_mail/tests/test_performance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py index 2003a39e233..5f6f6d54ec0 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -133,7 +133,7 @@ class TestAdvMailPerformance(TransactionCase): 'default_res_model': 'mail.test.activity', }) - with self.assertQueryCount(admin=47, emp=51): + with self.assertQueryCount(admin=47, emp=52): model.create({ 'summary': 'Test Activity', 'res_id': record.id,