Browse Source

Merge pull request #21388 from nextcloud/backport/21380/stable18

[stable18] Increase timeout of the appstore requests
Roeland Jago Douma 3 years ago
parent
commit
c9eede0acf

+ 1 - 1
lib/private/App/AppStore/Fetcher/Fetcher.php

@@ -96,7 +96,7 @@ abstract class Fetcher {
 		}
 
 		$options = [
-			'timeout' => 10,
+			'timeout' => 60,
 			'headers' => ['Accept-Encoding' => 'gzip'],
 		];
 

+ 7 - 7
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',
 					],