From fc4e3b3cf0c40494cec0c91cd05a895b78b8f233 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 12 Jun 2017 10:04:01 +0100 Subject: [PATCH] MDL-55548 course: update test to use waitForSecond() --- course/tests/courselib_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.17.1