Disable reportDupes for unit tests
authorStanislav Malyshev <smalyshev@gmail.com>
Sat, 8 Oct 2016 00:02:45 +0000 (17:02 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 8 Oct 2016 23:11:43 +0000 (23:11 +0000)
Bug: T147697
Change-Id: Ibd5901767be0d12d2aa50a4fc48b117711e6cf98

tests/phpunit/MediaWikiTestCase.php

index e53a958..9599016 100644 (file)
@@ -242,7 +242,7 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase {
                 * which we can't allow, as that would open a new connection for mysql.
                 * Replace with a HashBag. They would not be going to persist anyway.
                 */
-               $hashCache = [ 'class' => 'HashBagOStuff' ];
+               $hashCache = [ 'class' => 'HashBagOStuff', 'reportDupes' => false ];
                $objectCaches = [
                                CACHE_DB => $hashCache,
                                CACHE_ACCEL => $hashCache,