MDL-69419 core: Task reset tests cannot use random test times
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 19 Aug 2020 02:25:17 +0000 (10:25 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 26 Aug 2020 01:57:47 +0000 (09:57 +0800)
commit72616bfd4620c07a50931facb19fe763ac257658
tree1685ee74bb9d6262d411e266fcf090554b795fd7
parenta0fc902eb184cd4097c8ab453ddc57964cd2dbd4
MDL-69419 core: Task reset tests cannot use random test times

If a scheduled task which uses a 'R' field is picked, then the reset of
updated task times will not necessarily be correctly determined as the
randomisation is picked during reset.

This can lead to some random test failures.

Actively specifying a test which does not make use of the 'R' random
field time addresses this issue.
lib/tests/scheduled_task_test.php