summaryrefslogtreecommitdiff
path: root/odoo/tests
diff options
context:
space:
mode:
authorJulien Castiaux <juc@odoo.com>2019-10-21 15:02:01 +0000
committerfw-bot <otis@odoo.com>2019-10-22 14:08:06 +0000
commit6c37759a4826f8cefd1124fab07d2f692421cbc6 (patch)
treeb36786d6f19729c261dac488a07bd9aae881875e /odoo/tests
parent0c6488a95aa50aa3102aac9d89da09c18081d088 (diff)
[FIX] web: nightly clickall timeouts
The nightly clickall runbot fail due to a crash of the underlying chrome browser used to run the test suite. The problem is related to the resources the browser is using. We leverage the problem by starting one dedicated browser per app. closes odoo/odoo#39190 X-original-commit: 228e57d980839bd2b4e9123bf26f8a64de2ae6ab Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Diffstat (limited to 'odoo/tests')
-rw-r--r--odoo/tests/common.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/odoo/tests/common.py b/odoo/tests/common.py
index 08d1b28d4c1..be5cb0e65eb 100644
--- a/odoo/tests/common.py
+++ b/odoo/tests/common.py
@@ -943,10 +943,14 @@ class HttpCase(TransactionCase):
cls.browser = ChromeBrowser(cls._logger, cls.browser_size, cls.__name__)
@classmethod
- def tearDownClass(cls):
+ def terminate_browser(cls):
if cls.browser:
cls.browser.stop()
cls.browser = None
+
+ @classmethod
+ def tearDownClass(cls):
+ cls.terminate_browser()
super(HttpCase, cls).tearDownClass()
def setUp(self):