From: Joas Schilling Date: Fri, 12 Jun 2020 07:28:41 +0000 (+0200) Subject: Increase timeout of the appstore requests X-Git-Tag: v20.0.0beta1~424^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b6d5979d0ab8eb0ebf32b58f2c067a571634ab5e;p=nextcloud-server.git Increase timeout of the appstore requests Signed-off-by: Joas Schilling --- diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php index bb39637891f..500a0568c99 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -97,7 +97,7 @@ abstract class Fetcher { } $options = [ - 'timeout' => 10, + 'timeout' => 60, ]; if ($ETag !== '') { diff --git a/tests/lib/App/AppStore/Fetcher/FetcherBase.php b/tests/lib/App/AppStore/Fetcher/FetcherBase.php index 2e04f22760e..199bcd4b59b 100644 --- a/tests/lib/App/AppStore/Fetcher/FetcherBase.php +++ b/tests/lib/App/AppStore/Fetcher/FetcherBase.php @@ -550,7 +550,7 @@ abstract class FetcherBase extends TestCase { ->with( $this->equalTo($this->endpoint), $this->equalTo([ - 'timeout' => 10, + 'timeout' => 60, 'headers' => [ 'If-None-Match' => '"myETag"' ] @@ -622,7 +622,7 @@ abstract class FetcherBase extends TestCase { ->with( $this->equalTo($this->endpoint), $this->equalTo([ - 'timeout' => 10, + 'timeout' => 60, 'headers' => [ 'If-None-Match' => '"myETag"', ] @@ -709,7 +709,7 @@ abstract class FetcherBase extends TestCase { ->with( $this->equalTo($this->endpoint), $this->equalTo([ - 'timeout' => 10, + 'timeout' => 60, ]) ) ->willReturn($response);