From d7a5ee11ed094c5e66624779f76c073b2f614dad Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Thu, 1 Oct 2020 11:29:02 +0000 Subject: [PATCH] [FIX] web: add margin on template linearity check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linearity is not always perfect, managing more template will sometimes lead to slighlty more than a linear ratio randomly. The maximum observed ratio was 10.9. 12 seems a good value to catch non linear treatment while avoiding false positive. closes odoo/odoo#59027 X-original-commit: 62610f7851f0994fc0864f2b95851ce8b5984ce7 Signed-off-by: Xavier Dollé (xdo) --- addons/web/tests/test_serving_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/tests/test_serving_base.py b/addons/web/tests/test_serving_base.py index 267388bda85..d7d83c2532a 100644 --- a/addons/web/tests/test_serving_base.py +++ b/addons/web/tests/test_serving_base.py @@ -999,4 +999,4 @@ class TestStaticInheritancePerformance(TestStaticInheritanceCommon): time_ratio = delta25000.total_seconds() / delta2500.total_seconds() _logger.runbot('Static Templates Inheritance: 25000 templates treated in %s seconds' % delta25000.total_seconds()) _logger.runbot('Static Templates Inheritance: Computed linearity ratio: %s' % time_ratio) - self.assertLessEqual(time_ratio, 10) + self.assertLessEqual(time_ratio, 12)