diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php index c1ebfb025cf6092488aa914701309b6d3498087f..d8595c83a91d3a0581ba01241952429d3a97b732 100644 --- a/tests/lib/testcase.php +++ b/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]; }