Browse Source

Increase timeout of the appstore requests

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/21380/head
Joas Schilling 5 years ago
parent
commit
b6d5979d0a
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 2
      lib/private/App/AppStore/Fetcher/Fetcher.php
  2. 6
      tests/lib/App/AppStore/Fetcher/FetcherBase.php

2
lib/private/App/AppStore/Fetcher/Fetcher.php

@ -97,7 +97,7 @@ abstract class Fetcher {
}
$options = [
'timeout' => 10,
'timeout' => 60,
];
if ($ETag !== '') {

6
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);

Loading…
Cancel
Save