diff options
| author | Christophe Monniez <moc@odoo.com> | 2019-08-16 09:43:45 +0000 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2019-08-21 14:13:58 +0000 |
| commit | 3ca788f558bbdd68eaec7f57266bfbd17c2370e5 (patch) | |
| tree | 844a10cacd11257b40771228e9a76c595a6003ad /addons/base_import/static/src | |
| parent | f5f940a29186a4be4342b9cb3baaee55e5b1d6ff (diff) | |
[IMP] tests: refactor _wait_remaining_requests
After a browser_js, http requests threads are joined. If one of them
doesn't finish gracefully, a dumpstacks occurs.
As the dumpstacks call is in a loop, it can quickly polute logs. Even
more, a the dumptack may include threads that were not yet processed and
that will be joined in a future loop.
With this commit, dumpstacks will be called once and for all at the end
of the method, if at least one thread is remaining.
Furthermore, before this commit a sleep of 0.5 sec occured at most ten
times for each thread before considering it as lost. It means that each
thread is benefiting of the cumumulated time of the previous ones.
That's not fair.
With this commit, a default timeout of 10 sec is used for all threads.
The original warning is kept for each remaining request.
Diffstat (limited to 'addons/base_import/static/src')
0 files changed, 0 insertions, 0 deletions
