From e82c75c28b4b2ce070a97d7ca38667a214ea0d98 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Mon, 29 Aug 2022 10:17:51 +0000 Subject: [PATCH] [FIX] web: static template performance test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Time comparison can always be slightly random (this is why this test is a nightly one). The 20% margin left by the 12 ratio is not enough in all cases. This test was sometime breaking with a 12.944994188420822 not less than or equal to 12 This is one of the max value found by quickly checking the builds. A ratio of 14 should be hopefully enough. closes odoo/odoo#99156 X-original-commit: cc86b80342d38913f7af79474c41f8764c8b2dd2 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 7af8128c36b..39852e708fd 100644 --- a/addons/web/tests/test_serving_base.py +++ b/addons/web/tests/test_serving_base.py @@ -1020,4 +1020,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, 12) + self.assertLessEqual(time_ratio, 14)