release all locks after test

remotes/origin/poc-doctrine-migrations
Robin Appelman 11 years ago
parent e08423f956
commit b98dd3ceb8
  1. 1
      tests/lib/testcase.php

@ -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…
Cancel
Save