diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-12 09:28:41 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-12 13:01:06 +0200 |
commit | b6d5979d0ab8eb0ebf32b58f2c067a571634ab5e (patch) | |
tree | 9b856bcf01410bf1001f9b709c631cf91e91a72c | |
parent | c3267a58c9ede5ad793079f9e2ad414fdf18a562 (diff) | |
download | nextcloud-server-b6d5979d0ab8eb0ebf32b58f2c067a571634ab5e.tar.gz nextcloud-server-b6d5979d0ab8eb0ebf32b58f2c067a571634ab5e.zip |
Increase timeout of the appstore requests
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/App/AppStore/Fetcher/Fetcher.php | 2 | ||||
-rw-r--r-- | tests/lib/App/AppStore/Fetcher/FetcherBase.php | 6 |
2 files changed, 4 insertions, 4 deletions
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); |