diff options
| author | Thibault Delavallée <tde@odoo.com> | 2018-04-09 15:28:55 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-04-09 17:28:03 +0200 |
| commit | a03f8da8e45876d4383f516642ad78273f2287d3 (patch) | |
| tree | 843d224888975c4e24b03c5e40bb2daac7294240 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 6c381a3a16787cdf881817f8173a1d8c99bd9c21 (diff) | |
[IMP] tests: allow to add a margin on performance tests
Purpose of this commit is to avoid errors for some performance tests that
have a slightly variable number of queries. Indeed some tests in test_mail
module vary of 1 or 2 queries due to a behavior still not found that does
not seem deterministic.
This should not be considered as a real error, but should not be considered
as completely valid. This is why a margin is accepted in some tests that
will raise a warning instead of an error. This warning tells people to
check if they have increased the query counter or if it is due to a random
effect in query count.
This is a manual forward-port of saas-11.2 commit 3fe0ee5ae691e18e3512bbf55983c2fda765829d .
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
