From 1a0feab95d7f555aa1786f9f696ac3fef5dbd042 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Tue, 18 Aug 2020 13:02:27 +0000 Subject: [PATCH] [FIX] test_performance: query counts --- .../test_performance/tests/test_performance.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/odoo/addons/test_performance/tests/test_performance.py b/odoo/addons/test_performance/tests/test_performance.py index e880f8a3c75..1a34881707c 100644 --- a/odoo/addons/test_performance/tests/test_performance.py +++ b/odoo/addons/test_performance/tests/test_performance.py @@ -495,10 +495,10 @@ class TestIrPropertyOptimizations(TransactionCase): self.Bacon.create({'property_eggs': False}) # create with another value - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.with_context(default_property_eggs=eggs.id).create({}) - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.create({'property_eggs': eggs.id}) def test_with_truthy_default(self): @@ -524,16 +524,16 @@ class TestIrPropertyOptimizations(TransactionCase): eggs = self.Eggs.create({}) self.Bacon.create({'property_eggs': eggs.id}) - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.with_context(default_property_eggs=eggs.id).create({}) - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.create({'property_eggs': eggs.id}) - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.with_context(default_property_eggs=False).create({}) - with self.assertQueryCount(5): + with self.assertQueryCount(3): self.Bacon.create({'property_eggs': False})