Skip to content

Commit

Permalink
Merge pull request #21388 from nextcloud/backport/21380/stable18
Browse files Browse the repository at this point in the history
[stable18] Increase timeout of the appstore requests
  • Loading branch information
rullzer authored Jul 4, 2020
2 parents 1cc8cb5 + b5a6432 commit c9eede0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
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 @@ -96,7 +96,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

0 comments on commit c9eede0

Please sign in to comment.