always use locking in unit tests

This commit is contained in:
Robin Appelman 2015-05-22 13:52:42 +02:00
parent 437c0b55a6
commit 72847dbc77
1 changed files with 1 additions and 1 deletions

View File

@ -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');