[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) <moc@odoo.com>
This commit is contained in:
Sébastien Theys
2020-03-25 11:22:02 +00:00
parent 36316c5af2
commit d1282408d4
+2 -2
View File
@@ -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,