summaryrefslogtreecommitdiff
path: root/addons/web/tests
diff options
context:
space:
mode:
authorXavier-Do <xdo@odoo.com>2020-10-01 11:29:02 +0000
committerXavier-Do <xdo@odoo.com>2020-10-02 15:51:31 +0000
commit2849d0b8996916574214cc08404732e13bf0b1c5 (patch)
tree6ab52a0fa44b7eec27a4c1bdfb298bc0baf689cd /addons/web/tests
parent5461efc9620a6ff6f0d61cd2a15676c6b9c58fd7 (diff)
[FIX] web: add margin on template linearity check
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#59021 X-original-commit: 62610f7851f0994fc0864f2b95851ce8b5984ce7 Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Diffstat (limited to 'addons/web/tests')
-rw-r--r--addons/web/tests/test_serving_base.py2
1 files changed, 1 insertions, 1 deletions
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)