From b6d5979d0ab8eb0ebf32b58f2c067a571634ab5e Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Fri, 12 Jun 2020 09:28:41 +0200
Subject: [PATCH] Increase timeout of the appstore requests

Signed-off-by: Joas Schilling <coding@schilljs.com>
---
 lib/private/App/AppStore/Fetcher/Fetcher.php   | 2 +-
 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);
-- 
GitLab