@@ -442,6 +442,12 @@ public function testGetMatchingETag(): void {
442442		$ this config ->method ('getSystemValueBool ' )
443443			->willReturnArgument (1 );
444444
445+ 		$ this config ->method ('getAppValue ' )
446+ 			->willReturnMap ([
447+ 				['settings ' , 'appstore-fetcher-lastFailure ' , '0 ' , '0 ' ],
448+ 				['settings ' , 'appstore-timeout ' , '120 ' , '120 ' ],
449+ 			]);
450+ 
445451		$ folder$ this createMock (ISimpleFolder::class);
446452		$ file$ this createMock (ISimpleFile::class);
447453		$ this appData 
@@ -487,7 +493,7 @@ public function testGetMatchingETag(): void {
487493			->with (
488494				$ this equalTo ($ this endpoint ),
489495				$ this equalTo ([
490- 					'timeout '  => 60 ,
496+ 					'timeout '  => 120 ,
491497					'headers '  => [
492498						'If-None-Match '  => '"myETag" ' 
493499					]
@@ -521,6 +527,12 @@ public function testGetNoMatchingETag(): void {
521527		$ this config ->method ('getSystemValueBool ' )
522528			->willReturnArgument (1 );
523529
530+ 		$ this config ->method ('getAppValue ' )
531+ 			->willReturnMap ([
532+ 				['settings ' , 'appstore-fetcher-lastFailure ' , '0 ' , '0 ' ],
533+ 				['settings ' , 'appstore-timeout ' , '120 ' , '120 ' ],
534+ 			]);
535+ 
524536		$ folder$ this createMock (ISimpleFolder::class);
525537		$ file$ this createMock (ISimpleFile::class);
526538		$ this appData 
@@ -564,7 +576,7 @@ public function testGetNoMatchingETag(): void {
564576			->with (
565577				$ this equalTo ($ this endpoint ),
566578				$ this equalTo ([
567- 					'timeout '  => 60 ,
579+ 					'timeout '  => 120 ,
568580					'headers '  => [
569581						'If-None-Match '  => '"myETag" ' ,
570582					]
@@ -606,6 +618,12 @@ public function testFetchAfterUpgradeNoETag(): void {
606618		$ this config ->method ('getSystemValueBool ' )
607619			->willReturnArgument (1 );
608620
621+ 		$ this config ->method ('getAppValue ' )
622+ 			->willReturnMap ([
623+ 				['settings ' , 'appstore-fetcher-lastFailure ' , '0 ' , '0 ' ],
624+ 				['settings ' , 'appstore-timeout ' , '120 ' , '120 ' ],
625+ 			]);
626+ 
609627		$ folder$ this createMock (ISimpleFolder::class);
610628		$ file$ this createMock (ISimpleFile::class);
611629		$ this appData 
@@ -642,7 +660,7 @@ public function testFetchAfterUpgradeNoETag(): void {
642660			->with (
643661				$ this equalTo ($ this endpoint ),
644662				$ this equalTo ([
645- 					'timeout '  => 60 ,
663+ 					'timeout '  => 120 ,
646664				])
647665			)
648666			->willReturn ($ response
0 commit comments