Browse Source

Increase timeout of the appstore requests

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/21380/head
Joas Schilling 6 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 = [ $options = [
'timeout' => 10,
'timeout' => 60,
]; ];
if ($ETag !== '') { if ($ETag !== '') {

6
tests/lib/App/AppStore/Fetcher/FetcherBase.php

@ -550,7 +550,7 @@ abstract class FetcherBase extends TestCase {
->with( ->with(
$this->equalTo($this->endpoint), $this->equalTo($this->endpoint),
$this->equalTo([ $this->equalTo([
'timeout' => 10,
'timeout' => 60,
'headers' => [ 'headers' => [
'If-None-Match' => '"myETag"' 'If-None-Match' => '"myETag"'
] ]
@ -622,7 +622,7 @@ abstract class FetcherBase extends TestCase {
->with( ->with(
$this->equalTo($this->endpoint), $this->equalTo($this->endpoint),
$this->equalTo([ $this->equalTo([
'timeout' => 10,
'timeout' => 60,
'headers' => [ 'headers' => [
'If-None-Match' => '"myETag"', 'If-None-Match' => '"myETag"',
] ]
@ -709,7 +709,7 @@ abstract class FetcherBase extends TestCase {
->with( ->with(
$this->equalTo($this->endpoint), $this->equalTo($this->endpoint),
$this->equalTo([ $this->equalTo([
'timeout' => 10,
'timeout' => 60,
]) ])
) )
->willReturn($response); ->willReturn($response);

Loading…
Cancel
Save