diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-07-11 11:21:19 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-07-11 11:21:19 +0200 |
commit | b8a613351f042574de1eff8a9b403501e2cef146 (patch) | |
tree | 730f28f282611194662c6d0edf2ad1846268ce87 /tests | |
parent | 8970709e9ea435ac814af4ed9724b573ff9bbecc (diff) |
increase timeout to from 10 to 60 seconds, fix #278
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/utility/FeedFetcherTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
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'; @@ -132,6 +135,9 @@ class FeedFetcherTest extends \OCA\AppFramework\Utility\TestUtility { ->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)); $this->core->expects($this->once()) |