Web browser: ---
            Bug ID: 59105
           Summary: LBFactoryTest causes test failures when running *all*
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Unit tests
    Classification: Unclassified
   Mobile Platform: ---

Since introduction of LBFactoryTest
(, phpunit tests are failing when
running *all* the tests.  Tests pass when running just database group.

.A database query error has occurred.
Query: SELECT  user_id  FROM `unittest_user`   WHERE user_name = 'UTSysop' 
Function: User::idForName
Error: 1146 Table 'testclient.unittest_user' doesn't exist (localhost)

I am running with specifying the /tests/phpunit/includes directory and it fails
on DifferenceEngine test on addCoreDBData in MediaWikiTestCase.  Specifically,
it fails on line 411:

if ( $user->idForName() == 0 ) {

If I skip DifferenceEngineTest, then tests fail on OracleInstallerTest (and if
skipped, then fails on JobQueueTest)

LBFactoryTest is doing stuff with resetting the singleton, global, etc. 
Perhaps something is not correctly restored after test or there is another

You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to