diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-03-20 17:43:12 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-03-20 20:24:56 +0000 |
commit | ba67eddabe571233df8e1215aae70741df1d6f13 (patch) | |
tree | 1a90aef342213a858ffd6d71a6bf0f15afa91e51 /tests | |
parent | 41475951887c2c3b43f5d1a87aca8d4d3ff858fc (diff) | |
download | nextcloud-server-ba67eddabe571233df8e1215aae70741df1d6f13.tar.gz nextcloud-server-ba67eddabe571233df8e1215aae70741df1d6f13.zip |
Fix timeout capping
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-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); |