mirror of
https://github.com/nextcloud/server.git
synced 2024-08-27 17:55:28 +02:00
Release locks after class in tests
This commit is contained in:
parent
538e466c30
commit
eae08d0adc
@ -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 New Issue
Block a user