From 8b295ad968f7ab6d43f9703d08a097494eb166e5 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Tue, 18 Jan 2022 08:56:35 +0000 Subject: [PATCH] [FIX] tests: bump allowed assets generation time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As this test is always red, notably because of the qunit asset bundle, the threshold is raised for some bundles based on runbot builds observations. closes odoo/odoo#82972 X-original-commit: ab8350b5432a6a6d671bcc76413815274f7daaca Signed-off-by: Xavier Dollé (xdo) Signed-off-by: Christophe Monniez (moc) --- addons/web/tests/test_assets.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/web/tests/test_assets.py b/addons/web/tests/test_assets.py index 9c102339ac0..fd3155252f9 100644 --- a/addons/web/tests/test_assets.py +++ b/addons/web/tests/test_assets.py @@ -56,6 +56,12 @@ class TestAssetsGenerateTime(TestAssetsGenerateTimeCommon): """ def test_assets_generate_time(self): + thresholds = { + 'web.qunit_suite_tests.js': 3.6, + 'project.webclient.js': 2.5, + 'point_of_sale.pos_assets_backend.js': 2.5, + 'web.assets_backend.js': 2.5, + } for bundle, duration in self.generate_bundles(): - threshold = 2 + threshold = thresholds.get(bundle, 2) self.assertLess(duration, threshold, "Bundle %r took more than %s sec" % (bundle, threshold))