From b8a613351f042574de1eff8a9b403501e2cef146 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 11 Jul 2013 11:21:19 +0200 Subject: increase timeout to from 10 to 60 seconds, fix #278 --- tests/unit/utility/FeedFetcherTest.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/unit/utility/FeedFetcherTest.php b/tests/unit/utility/FeedFetcherTest.php index b783da296..94339fe96 100644 --- a/tests/unit/utility/FeedFetcherTest.php +++ b/tests/unit/utility/FeedFetcherTest.php @@ -43,6 +43,7 @@ class FeedFetcherTest extends \OCA\AppFramework\Utility\TestUtility { private $time; private $item; private $purifier; + private $fetchTimeout; // items private $permalink; @@ -91,12 +92,14 @@ class FeedFetcherTest extends \OCA\AppFramework\Utility\TestUtility { ->will($this->returnValue($this->time)); $this->cacheDuration = 100; $this->cacheDirectory = 'dir/'; + $this->fetchTimeout = 40; $this->fetcher = new FeedFetcher($this->getAPIMock(), $this->coreFactory, $this->faviconFetcher, $timeFactory, $this->cacheDirectory, $this->cacheDuration, + $this->fetchTimeout, $this->purifier); $this->url = 'tests'; @@ -131,6 +134,9 @@ class FeedFetcherTest extends \OCA\AppFramework\Utility\TestUtility { $this->core->expects($this->once()) ->method('enable_cache') ->with($this->equalTo(true)); + $this->core->expects($this->once()) + ->method('set_timeout') + ->with($this->equalTo($this->fetchTimeout)); $this->core->expects($this->once()) ->method('set_cache_location') ->with($this->equalTo($this->cacheDirectory)); -- cgit v1.2.3