[Pkg-owncloud-commits] [owncloud] 126/205: Release locks after class in tests
David Prévot
taffit at moszumanska.debian.org
Thu Jul 2 17:37:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit eae08d0adc923b9c5fedd01332937ae6e63d6869
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Mon Jun 22 12:10:06 2015 +0200
Release locks after class in tests
---
tests/lib/testcase.php | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php
index bb0cb68..407c516 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.
*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list