Last modified: 2011-10-28 13:02:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T25169, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23169 - SearchDbTest gives fatal error when not run as first test
SearchDbTest gives fatal error when not run as first test
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-12 12:29 UTC by Bryan Tong Minh
Modified: 2011-10-28 13:02 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bryan Tong Minh 2010-04-12 12:29:53 UTC
When SearchDbTest is not run as first test (by running all tests, or for example --filter "/^[RS].*/"), it crashes because SearchEngine::searchText returns null. When it is run as first test (phpunit SearchDbTest), it runs the tests normally.

I am using SQLite.
Comment 1 Antoine "hashar" Musso (WMF) 2011-10-28 13:02:06 UTC
I can not reproduce this issue, it most probably got resolved since april 2010 :-)

Test plan:

$ ./phpunit.php --filter "/^[RS].*/"
PHPUnit 3.5.15 by Sebastian Bergmann.

.............................................................   61 / 2315 (  2%)
................................................

Time: 11 seconds, Memory: 86.25Mb

OK (109 tests, 259 assertions)
$


Note the SearchDbTest does not seem to exist anymore.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links