summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-06-22 12:10:06 +0200
committerVincent Petry <pvince81@owncloud.com>2015-06-25 16:33:02 +0200
commiteae08d0adc923b9c5fedd01332937ae6e63d6869 (patch)
tree5d3708f4e75a3f9c4f84be3211245b4c11c61053
parent538e466c306ddc1e1ee497cbe43770e084df1dcd (diff)
downloadnextcloud-server-eae08d0adc923b9c5fedd01332937ae6e63d6869.tar.gz
nextcloud-server-eae08d0adc923b9c5fedd01332937ae6e63d6869.zip
Release locks after class in tests
-rw-r--r--tests/lib/testcase.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php
index bb0cb68f754..407c5165140 100644
--- a/tests/lib/testcase.php
+++ b/tests/lib/testcase.php
@@ -104,6 +104,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
self::tearDownAfterClassCleanFileCache();
self::tearDownAfterClassCleanStrayDataFiles($dataDir);
self::tearDownAfterClassCleanStrayHooks();
+ self::tearDownAfterClassCleanStrayLocks();
parent::tearDownAfterClass();
}
@@ -197,6 +198,13 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
}
/**
+ * 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.
*