Show
Run following for few hours to ensure it never fail.
while [ $? -eq 0 ]; do vendor/bin/phpunit competency/tests/api_test.php; done
or apply following and make sure it fails without patch and not after patch
--- a/competency/tests/api_test.php
+++ b/competency/tests/api_test.php
@@ -2610,7 +2610,7 @@ class core_competency_api_testcase extends advanced_testcase {
$result = api::list_evidence_in_course($u1->id, $course->id, $c->get_id());
$this->assertEquals($result[0]->get_id(), $evidence1->get_id());
-
+sleep(2);
// Now add the evidence to the course module.
$evidence2 = api::add_evidence($u1->id, $c->get_id(), $cmcontext->id, \core_competency\evidence::ACTION_LOG,
'invaliddata', 'error');