diff --git a/admin/tool/messageinbound/tests/manager_test.php b/admin/tool/messageinbound/tests/manager_test.php index 936d99636a0..b88a74261bf 100644 --- a/admin/tool/messageinbound/tests/manager_test.php +++ b/admin/tool/messageinbound/tests/manager_test.php @@ -58,7 +58,7 @@ class tool_messageinbound_manager_testcase extends provider_testcase { global $DB; $now = time(); - $stale = time() - DAYSECS; + $stale = $now - DAYSECS - 1; // Make a second older because PHP Unit is too damn fast!! $this->create_messagelist(['timecreated' => $now]); $this->create_messagelist(['timecreated' => $now - HOURSECS]);