Skip to content
Snippets Groups Projects
Commit b98dd3ce authored by Robin Appelman's avatar Robin Appelman
Browse files

release all locks after test

parent e08423f9
Branches
No related tags found
No related merge requests found
......@@ -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];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment