X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=course%2Ftests%2Fcourselib_test.php;h=374c508ef12c82bf77725daa94e6ebfa1cbe65c6;hp=c58964800fe8a8f51aab81335d340e6d4ef14ec6;hb=fc4e3b3cf0c40494cec0c91cd05a895b78b8f233;hpb=a52d3abbb637be028af4097c83bd98967496bd7c;ds=sidebyside diff --git a/course/tests/courselib_test.php b/course/tests/courselib_test.php index c58964800fe..374c508ef12 100644 --- a/course/tests/courselib_test.php +++ b/course/tests/courselib_test.php @@ -692,7 +692,7 @@ class core_course_courselib_testcase extends advanced_testcase { $oldtimemodified = $section->timemodified; // Update the section. - sleep(1); // Ensuring that the section update occurs at a different timestamp. + $this->waitForSecond(); // Ensuring that the section update occurs at a different timestamp. course_update_section($course, $section, array()); // Check that the time has changed.