[wp-trac] [WordPress Trac] #31537: Database lock timeout in phpunit (fresh install)
WordPress Trac
noreply at wordpress.org
Thu Mar 5 13:14:17 UTC 2015
#31537: Database lock timeout in phpunit (fresh install)
------------------------------+--------------------
Reporter: byron.hawkins | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+--------------------
Comment (by boonebgorges):
In [changeset:"31622"]:
{{{
#!CommitTicketReference repository="" revision="31622"
In PHPUnit test classes, `parent::tearDown()` should be the last thing
done in `tearDown()` methods.
`WP_UnitTestCase::tearDown()` restores the test environment to the default
conditions, including rolling back the MySQL transaction that the test
takes
place in, resetting globals, and unhooking test-specific filters. As such,
all
teardown routines for specific tests should happen before the parent
class's
`tearDown()` method is called. Failure to do so can cause database locks
on
certain configurations, among other problems.
See #31537.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31537#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list