Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Increase timeout of the appstore requests
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jul 3, 2020
commit a1b1f8014ed0bd2acfe54045b569e9e91987fa56
2 changes: 1 addition & 1 deletion lib/private/App/AppStore/Fetcher/Fetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected function fetch($ETag, $content) {
}

$options = [
'timeout' => 10,
'timeout' => 60,
'headers' => ['Accept-Encoding' => 'gzip'],
];

Expand Down
14 changes: 7 additions & 7 deletions tests/lib/App/AppStore/Fetcher/FetcherBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public function testGetWithAlreadyExistingFileAndOutdatedTimestamp() {
->with(
$this->equalTo($this->endpoint),
$this->equalTo([
'timeout' => 10,
'timeout' => 60,
'headers' => [
'Accept-Encoding' => 'gzip',
]
Expand Down Expand Up @@ -353,7 +353,7 @@ public function testGetWithAlreadyExistingFileAndNoVersion() {
->with(
$this->equalTo($this->endpoint),
$this->equalTo([
'timeout' => 10,
'timeout' => 60,
'headers' => [
'Accept-Encoding' => 'gzip',
]
Expand Down Expand Up @@ -449,7 +449,7 @@ public function testGetWithAlreadyExistingFileAndOutdatedVersion() {
->with(
$this->equalTo($this->endpoint),
$this->equalTo([
'timeout' => 10,
'timeout' => 60,
'headers' => [
'Accept-Encoding' => 'gzip',
]
Expand Down Expand Up @@ -522,7 +522,7 @@ public function testGetWithExceptionInClient() {
->with(
$this->equalTo($this->endpoint),
$this->equalTo([
'timeout' => 10,
'timeout' => 60,
'headers' => [
'Accept-Encoding' => 'gzip',
]
Expand Down Expand Up @@ -582,7 +582,7 @@ public function testGetMatchingETag() {
->with(
$this->equalTo($this->endpoint),
$this->equalTo([
'timeout' => 10,
'timeout' => 60,
'headers' => [
'Accept-Encoding' => 'gzip',
'If-None-Match' => '"myETag"',
Expand Down Expand Up @@ -655,7 +655,7 @@ public function testGetNoMatchingETag() {
->with(
$this->equalTo($this->endpoint),
$this->equalTo([
'timeout' => 10,
'timeout' => 60,
'headers' => [
'Accept-Encoding' => 'gzip',
'If-None-Match' => '"myETag"',
Expand Down Expand Up @@ -743,7 +743,7 @@ public function testFetchAfterUpgradeNoETag() {
->with(
$this->equalTo($this->endpoint),
$this->equalTo([
'timeout' => 10,
'timeout' => 60,
'headers' => [
'Accept-Encoding' => 'gzip',
],
Expand Down