release all locks after test
This commit is contained in:
parent
e08423f956
commit
b98dd3ceb8
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
|
|||
protected function tearDown() {
|
||||
$hookExceptions = \OC_Hook::$thrownExceptions;
|
||||
\OC_Hook::$thrownExceptions = [];
|
||||
\OC::$server->getLockingProvider()->releaseAll();
|
||||
if(!empty($hookExceptions)) {
|
||||
throw $hookExceptions[0];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue