https://bugzilla.wikimedia.org/show_bug.cgi?id=59105
Web browser: ---
Bug ID: 59105
Summary: LBFactoryTest causes test failures when running *all*
tests
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Unit tests
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Since introduction of LBFactoryTest
(https://gerrit.wikimedia.org/r/#/c/96469/), 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'
LIMIT 1
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
issue.
--
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l