jenkins-bot has submitted this change and it was merged.

Change subject: Fix tests; cache expects cachetime now
......................................................................


Fix tests; cache expects cachetime now

Change-Id: I3f85daf0973c468686c07d26375c3a8dc242676d
---
M tests/IndexTest.php
1 file changed, 6 insertions(+), 2 deletions(-)

Approvals:
  EBernhardson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/IndexTest.php b/tests/IndexTest.php
index 17c1495..6c4a113 100644
--- a/tests/IndexTest.php
+++ b/tests/IndexTest.php
@@ -5,8 +5,10 @@
 class IndexTest extends \MediaWikiTestCase {
 
        public function testShallow() {
+               global $wgFlowCacheTime;
+
                $bag = new \HashBagOStuff;
-               $cache = new Data\BufferedCache( $bag );
+               $cache = new Data\BufferedCache( $bag, $wgFlowCacheTime );
 
                // As we are only testing the cached result, storage should 
never be called
                // not sure how to test that
@@ -47,8 +49,10 @@
        }
 
        public function testCompositeShallow() {
+               global $wgFlowCacheTime;
+
                $bag = new \HashBagOStuff;
-               $cache = new \Flow\Data\BufferedCache( $bag );
+               $cache = new \Flow\Data\BufferedCache( $bag, $wgFlowCacheTime );
                $storage = $this->getMock( 'Flow\\Data\\ObjectStorage' );
 
                $unique = new \Flow\Data\UniqueFeatureIndex(

-- 
To view, visit https://gerrit.wikimedia.org/r/101208
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3f85daf0973c468686c07d26375c3a8dc242676d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org>
Gerrit-Reviewer: EBernhardson <ebernhard...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to