always use locking in unit tests
This commit is contained in:
parent
437c0b55a6
commit
72847dbc77
|
@ -423,7 +423,7 @@ class Server extends SimpleContainer implements IServerContainer {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
$this->registerService('LockingProvider', function (Server $c) {
|
$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 */
|
/** @var \OC\Memcache\Factory $memcacheFactory */
|
||||||
$memcacheFactory = $c->getMemCacheFactory();
|
$memcacheFactory = $c->getMemCacheFactory();
|
||||||
$memcache = $memcacheFactory->createDistributed('lock');
|
$memcache = $memcacheFactory->createDistributed('lock');
|
||||||
|
|
Loading…
Reference in New Issue