Skip to content

Commit b6d5979

Browse files
committed
Increase timeout of the appstore requests
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent c3267a5 commit b6d5979

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected function fetch($ETag, $content) {
9797
}
9898

9999
$options = [
100-
'timeout' => 10,
100+
'timeout' => 60,
101101
];
102102

103103
if ($ETag !== '') {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public function testGetMatchingETag() {
550550
->with(
551551
$this->equalTo($this->endpoint),
552552
$this->equalTo([
553-
'timeout' => 10,
553+
'timeout' => 60,
554554
'headers' => [
555555
'If-None-Match' => '"myETag"'
556556
]
@@ -622,7 +622,7 @@ public function testGetNoMatchingETag() {
622622
->with(
623623
$this->equalTo($this->endpoint),
624624
$this->equalTo([
625-
'timeout' => 10,
625+
'timeout' => 60,
626626
'headers' => [
627627
'If-None-Match' => '"myETag"',
628628
]
@@ -709,7 +709,7 @@ public function testFetchAfterUpgradeNoETag() {
709709
->with(
710710
$this->equalTo($this->endpoint),
711711
$this->equalTo([
712-
'timeout' => 10,
712+
'timeout' => 60,
713713
])
714714
)
715715
->willReturn($response);

0 commit comments

Comments
 (0)