@@ -443,6 +443,12 @@ public function testGetMatchingETag(): void {
443443		$ this config ->method ('getSystemValueBool ' )
444444			->willReturnArgument (1 );
445445
446+ 		$ this config ->method ('getAppValue ' )
447+ 			->willReturnMap ([
448+ 				['settings ' , 'appstore-fetcher-lastFailure ' , '0 ' , '0 ' ],
449+ 				['settings ' , 'appstore-timeout ' , '120 ' , '120 ' ],
450+ 			]);
451+ 
446452		$ folder$ this createMock (ISimpleFolder::class);
447453		$ file$ this createMock (ISimpleFile::class);
448454		$ this appData 
@@ -488,7 +494,7 @@ public function testGetMatchingETag(): void {
488494			->with (
489495				$ this equalTo ($ this endpoint ),
490496				$ this equalTo ([
491- 					'timeout '  => 60 ,
497+ 					'timeout '  => 120 ,
492498					'headers '  => [
493499						'If-None-Match '  => '"myETag" ' 
494500					]
@@ -522,6 +528,12 @@ public function testGetNoMatchingETag(): void {
522528		$ this config ->method ('getSystemValueBool ' )
523529			->willReturnArgument (1 );
524530
531+ 		$ this config ->method ('getAppValue ' )
532+ 			->willReturnMap ([
533+ 				['settings ' , 'appstore-fetcher-lastFailure ' , '0 ' , '0 ' ],
534+ 				['settings ' , 'appstore-timeout ' , '120 ' , '120 ' ],
535+ 			]);
536+ 
525537		$ folder$ this createMock (ISimpleFolder::class);
526538		$ file$ this createMock (ISimpleFile::class);
527539		$ this appData 
@@ -565,7 +577,7 @@ public function testGetNoMatchingETag(): void {
565577			->with (
566578				$ this equalTo ($ this endpoint ),
567579				$ this equalTo ([
568- 					'timeout '  => 60 ,
580+ 					'timeout '  => 120 ,
569581					'headers '  => [
570582						'If-None-Match '  => '"myETag" ' ,
571583					]
@@ -607,6 +619,12 @@ public function testFetchAfterUpgradeNoETag(): void {
607619		$ this config ->method ('getSystemValueBool ' )
608620			->willReturnArgument (1 );
609621
622+ 		$ this config ->method ('getAppValue ' )
623+ 			->willReturnMap ([
624+ 				['settings ' , 'appstore-fetcher-lastFailure ' , '0 ' , '0 ' ],
625+ 				['settings ' , 'appstore-timeout ' , '120 ' , '120 ' ],
626+ 			]);
627+ 
610628		$ folder$ this createMock (ISimpleFolder::class);
611629		$ file$ this createMock (ISimpleFile::class);
612630		$ this appData 
@@ -643,7 +661,7 @@ public function testFetchAfterUpgradeNoETag(): void {
643661			->with (
644662				$ this equalTo ($ this endpoint ),
645663				$ this equalTo ([
646- 					'timeout '  => 60 ,
664+ 					'timeout '  => 120 ,
647665				])
648666			)
649667			->willReturn ($ response
0 commit comments