From: Platonides Date: Mon, 15 Nov 2010 20:40:49 +0000 (+0000) Subject: If this was needed to use MockSearch, it will also be needed after it has run, so... X-Git-Tag: 1.31.0-rc.0~33878 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=17c154310c38994deb08d12f1c6e6a707e48c7b8;p=lhc%2Fweb%2Fwiklou.git If this was needed to use MockSearch, it will also be needed after it has run, so other tests can get the real db they expect. --- diff --git a/maintenance/tests/phpunit/includes/search/SearchUpdateTest.php b/maintenance/tests/phpunit/includes/search/SearchUpdateTest.php index 4555bb1d60..9295ac71b8 100644 --- a/maintenance/tests/phpunit/includes/search/SearchUpdateTest.php +++ b/maintenance/tests/phpunit/includes/search/SearchUpdateTest.php @@ -91,6 +91,8 @@ class SearchUpdateTest extends PHPUnit_Framework_TestCase { $wgDBtype = self::$dbtype; $wgLBFactoryConf = self::$factoryconf; $wgDBservers = self::$dbservers; + + wfGetLBFactory()->destroyInstance(); } function testUpdateText() {