From 887e74043468106ec7a28b2b68e38d471696357e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Fri, 20 Mar 2020 17:43:12 +0100 Subject: [PATCH] Fix timeout capping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Calviño Sánchez --- tests/acceptance/features/bootstrap/NotificationsContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/features/bootstrap/NotificationsContext.php b/tests/acceptance/features/bootstrap/NotificationsContext.php index 6f959f0468c..13717b0ba03 100644 --- a/tests/acceptance/features/bootstrap/NotificationsContext.php +++ b/tests/acceptance/features/bootstrap/NotificationsContext.php @@ -87,7 +87,7 @@ class NotificationsContext implements Context, ActorAwareInterface { // As the waiting is long enough already the find timeout multiplier is // capped at 2 when finding notifications. $findTimeoutMultiplier = $this->actor->getFindTimeoutMultiplier(); - $this->actor->setFindTimeoutMultiplier(max(2, $findTimeoutMultiplier)); + $this->actor->setFindTimeoutMultiplier(min(2, $findTimeoutMultiplier)); $this->actor->find(self::acceptButtonInIncomingShareNotificationForFile($fileName), 35)->click(); $this->actor->setFindTimeoutMultiplier($findTimeoutMultiplier);