summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-05-22 13:52:42 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-01 13:22:56 +0200
commit72847dbc7794f250fb59ddf5e679d226909ec065 (patch)
tree5dec47df2bac77599106957ab013dc538f7fc677
parent437c0b55a625ce3c2c6a81740fda8cb7a0bf1998 (diff)
downloadnextcloud-server-72847dbc7794f250fb59ddf5e679d226909ec065.tar.gz
nextcloud-server-72847dbc7794f250fb59ddf5e679d226909ec065.zip
always use locking in unit tests
-rw-r--r--lib/private/server.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index 88f57e73a39..551012d8355 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -423,7 +423,7 @@ class Server extends SimpleContainer implements IServerContainer {
);
});
$this->registerService('LockingProvider', function (Server $c) {
- if ($c->getConfig()->getSystemValue('filelocking.enabled', false)) {
+ if ($c->getConfig()->getSystemValue('filelocking.enabled', false) or (defined('PHPUNIT_RUN') && PHPUNIT_RUN)) {
/** @var \OC\Memcache\Factory $memcacheFactory */
$memcacheFactory = $c->getMemCacheFactory();
$memcache = $memcacheFactory->createDistributed('lock');