Release locks after class in tests
This commit is contained in:
parent
538e466c30
commit
eae08d0adc
1 changed files with 8 additions and 0 deletions
|
@ -104,6 +104,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
|
|||
self::tearDownAfterClassCleanFileCache();
|
||||
self::tearDownAfterClassCleanStrayDataFiles($dataDir);
|
||||
self::tearDownAfterClassCleanStrayHooks();
|
||||
self::tearDownAfterClassCleanStrayLocks();
|
||||
|
||||
parent::tearDownAfterClass();
|
||||
}
|
||||
|
@ -196,6 +197,13 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
|
|||
\OC_Hook::clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up the list of locks
|
||||
*/
|
||||
static protected function tearDownAfterClassCleanStrayLocks() {
|
||||
\OC::$server->getLockingProvider()->releaseAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* Login and setup FS as a given user,
|
||||
* sets the given user as the current user.
|
||||
|
|
Loading…
Reference in a new issue