diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-03-20 17:43:12 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-03-20 17:43:12 +0100 |
commit | 887e74043468106ec7a28b2b68e38d471696357e (patch) | |
tree | d6523d828a4c2cd516dd33b5b791169f35154cbb /tests/acceptance | |
parent | 43e18e96e26ceb3767bd07aa300416970c49970f (diff) | |
download | nextcloud-server-887e74043468106ec7a28b2b68e38d471696357e.tar.gz nextcloud-server-887e74043468106ec7a28b2b68e38d471696357e.zip |
Fix timeout capping
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r-- | tests/acceptance/features/bootstrap/NotificationsContext.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |