diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-12 09:28:41 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-07-02 23:36:24 +0200 |
commit | 9d541ccfd119c62fcd2bee464746f38df14e2fc9 (patch) | |
tree | 5bf53bfe9ff22143709b22755b2c8395e55731cd | |
parent | 79b3923a4270f6bbbbe39eecb2c83c75cda00380 (diff) | |
download | nextcloud-server-9d541ccfd119c62fcd2bee464746f38df14e2fc9.tar.gz nextcloud-server-9d541ccfd119c62fcd2bee464746f38df14e2fc9.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 | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php index c109bacf135..d8f6a8dd4c4 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, 'headers' => ['Accept-Encoding' => 'gzip'], ]; diff --git a/tests/lib/App/AppStore/Fetcher/FetcherBase.php b/tests/lib/App/AppStore/Fetcher/FetcherBase.php index 45f3f22b9d4..ba1062127fb 100644 --- a/tests/lib/App/AppStore/Fetcher/FetcherBase.php +++ b/tests/lib/App/AppStore/Fetcher/FetcherBase.php @@ -252,7 +252,7 @@ abstract class FetcherBase extends TestCase { ->with( $this->equalTo($this->endpoint), $this->equalTo([ - 'timeout' => 10, + 'timeout' => 60, 'headers' => [ 'Accept-Encoding' => 'gzip', ] @@ -353,7 +353,7 @@ abstract class FetcherBase extends TestCase { ->with( $this->equalTo($this->endpoint), $this->equalTo([ - 'timeout' => 10, + 'timeout' => 60, 'headers' => [ 'Accept-Encoding' => 'gzip', ] @@ -449,7 +449,7 @@ abstract class FetcherBase extends TestCase { ->with( $this->equalTo($this->endpoint), $this->equalTo([ - 'timeout' => 10, + 'timeout' => 60, 'headers' => [ 'Accept-Encoding' => 'gzip', ] @@ -522,7 +522,7 @@ abstract class FetcherBase extends TestCase { ->with( $this->equalTo($this->endpoint), $this->equalTo([ - 'timeout' => 10, + 'timeout' => 60, 'headers' => [ 'Accept-Encoding' => 'gzip', ] @@ -582,7 +582,7 @@ abstract class FetcherBase extends TestCase { ->with( $this->equalTo($this->endpoint), $this->equalTo([ - 'timeout' => 10, + 'timeout' => 60, 'headers' => [ 'Accept-Encoding' => 'gzip', 'If-None-Match' => '"myETag"', @@ -655,7 +655,7 @@ abstract class FetcherBase extends TestCase { ->with( $this->equalTo($this->endpoint), $this->equalTo([ - 'timeout' => 10, + 'timeout' => 60, 'headers' => [ 'Accept-Encoding' => 'gzip', 'If-None-Match' => '"myETag"', @@ -743,7 +743,7 @@ abstract class FetcherBase extends TestCase { ->with( $this->equalTo($this->endpoint), $this->equalTo([ - 'timeout' => 10, + 'timeout' => 60, 'headers' => [ 'Accept-Encoding' => 'gzip', ], |