diff options
| author | Christophe Monniez <moc@odoo.com> | 2020-02-14 15:23:11 +0000 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2020-02-20 16:53:33 +0000 |
| commit | 426fc163bac0aa76fa231d1253e966dea8aca39d (patch) | |
| tree | d6b412acccf483d771b39c2fe7e114925492b18d /odoo/modules/module.py | |
| parent | 54e1a69b09aaaaa6299a7b8d1dfd4bfc7ab3e792 (diff) | |
[FIX] tests: avoid confusing traceback at browser start
During an HttpCase, when the Chrome browser starts, it may happens that
the websocket is unreachable. In such a case, the stop method is called
and tries to stop the browser gracefully by sending a `Browser.close`
through the websocket ... which is not reachable.
The result is a confusing traceback. With this commit, nothing is sent
is the websocket is not available.
Moreover, the `sigxcpu_handler` attribute is used in the stop method but
not yet declared. Fixed by moving it before calling the _chrome_start
method.
X-original-commit: 0d156fd3bc114b40680ca5aa0456e0f21a5b8cff
Diffstat (limited to 'odoo/modules/module.py')
0 files changed, 0 insertions, 0 deletions
