From b5a64321f57bba383ce208f1bcd075fe97b23a1d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 12 Jun 2020 09:28:41 +0200 Subject: [PATCH] Increase timeout of the appstore requests Signed-off-by: Joas Schilling --- lib/private/App/AppStore/Fetcher/Fetcher.php | 2 +- 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 2f4e8b047d9..8415eed1ff0 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -96,7 +96,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 36cfb9cf4ed..f0a939e622f 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', ], -- 2.39.5