mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 11:46:19 +01:00
Merge branch 'MDL-67217_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
1eac44f128
2
analytics/tests/fixtures/test_analysis.php
vendored
2
analytics/tests/fixtures/test_analysis.php
vendored
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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++) {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user