From 17c154310c38994deb08d12f1c6e6a707e48c7b8 Mon Sep 17 00:00:00 2001 From: Platonides Date: Mon, 15 Nov 2010 20:40:49 +0000 Subject: [PATCH] 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. --- maintenance/tests/phpunit/includes/search/SearchUpdateTest.php | 2 ++ 1 file changed, 2 insertions(+) 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() { -- 2.20.1