From d1282408d4f021fb109e8fad2c0fee3996fa5bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Wed, 25 Mar 2020 11:22:02 +0000 Subject: [PATCH] [FIX] test_mail: adapt query count A commit merged very recently added 1 more base query to both users, but because the count of that particular test is non deterministic, the issue is only spotted later on runbot, and it has to be fixed now. closes odoo/odoo#48331 Signed-off-by: Christophe Monniez (moc) --- addons/test_mail/tests/test_performance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py index 85b1f24980f..c79ae4abf65 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -276,8 +276,8 @@ class TestMailAPIPerformance(BaseMailPerformance): def test_mail_composer_w_template(self): test_record = self.env['mail.test.full'].browse(self.test_record_full.id) test_template = self.env['mail.template'].browse(self.test_template_full.id) - # TODO FIXME non deterministic, last check 25 feb 2020. Runbot at most +7 compared to local. - with self.assertQueryCount(__system__=27, emp=28): + # TODO FIXME non deterministic, last check 25 Mar 2020. Runbot at most +7 compared to local. + with self.assertQueryCount(__system__=28, emp=29): composer = self.env['mail.compose.message'].with_context({ 'default_composition_mode': 'comment', 'default_model': test_record._name,