From b71419ae042e9bc6bdaa0afbfd12459992665071 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Thu, 27 Feb 2014 14:29:20 +0800 Subject: [PATCH] MDL-25505 behat: Adding a time gap between two cron runs. According to \core\task\scheduled_task::get_next_scheduled_time() we wait 61 seconds, as the next scheduled time is in the next minute. --- badges/tests/behat/award_badge.feature | 2 ++ 1 file changed, 2 insertions(+) diff --git a/badges/tests/behat/award_badge.feature b/badges/tests/behat/award_badge.feature index faf198cc42a..582b9fbe96f 100644 --- a/badges/tests/behat/award_badge.feature +++ b/badges/tests/behat/award_badge.feature @@ -235,6 +235,8 @@ Feature: Award badges # We can't wait for cron to happen, so the admin manually triggers it. And I trigger cron # The admin needs to trigger cron twice to see the completion status as completed. + # We wait more than 1 minute because of the next cron run scheduled time. + And I wait "61" seconds And I trigger cron # Finally the admin goes back to homepage to continue the user story. And I am on homepage -- 2.43.0