Merge branch 'MDL-67217_master' of git://github.com/dmonllao/moodle

This commit is contained in:
Jun Pataleta 2019-11-25 16:13:01 +08:00
commit 1eac44f128
3 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ class test_analysis extends \core_analytics\analysis {
*/
public function process_analysable(\core_analytics\analysable $analysable): array {
// Half a second.
usleep(500000);
sleep(1);
return parent::process_analysable($analysable);
}
}

View File

@ -292,7 +292,7 @@ class analytics_model_testcase extends advanced_testcase {
$this->resetAfterTest(true);
set_config('modeltimelimit', 1, 'analytics');
set_config('modeltimelimit', 2, 'analytics');
$courses = array();
for ($i = 0; $i < 5; $i++) {

View File

@ -303,7 +303,7 @@ class core_analytics_time_splittings_testcase extends advanced_testcase {
$mostrecentrange = reset($mostrecentrange);
// We wait for the next range to be added.
usleep(1000000);
sleep(1);
// We set the analysable again so the time ranges are recalculated.
$seconds->set_analysable($analysable);
@ -344,7 +344,7 @@ class core_analytics_time_splittings_testcase extends advanced_testcase {
$this->mock_cache_first_analysis_caching($modelid, $analysable->get_id(), end($ranges));
// We wait for the next range to be added.
usleep(1000000);
sleep(1);
// We set the analysable again so the time ranges are recalculated.
$upcomingseconds->set_analysable($analysable);