summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorXavierDo <xdo@odoo.com>2019-02-06 12:10:36 +0000
committerXavierDo <xdo@odoo.com>2019-02-07 12:53:14 +0000
commit5c3aaacd2e5748b3f104f5ee033b442582d44c07 (patch)
treef66a0af24d0bb6ce135a85738f087cb6af915d20 /addons/web/static/src/js
parent2d45df1081c568c3b306fae18b9284878756c85b (diff)
[IMP] mail: correctly patch mail status manager timers
We want to avoid that a `setTimeout` started in one test has an impact on other tests. This is especially true with the status update loop. Since mail_service is used in multiple tests, the safest solution is to patch timeouts everytime we make a call to getMailServices. There is no need for an unpatch, the patch become the default behaviour until the page is refresh at the end of tests. It is possible to manually add the patch after calling `getMailServices` ``` this.services = mailTestUtils.getMailServices(this); this.timeoutMock = mailTestUtils.patchMailTimeouts(); ``` This can be usefull if we want to get the timeoutMock to simulate time changes. Task: 1856205
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions