mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
always use locking in unit tests
This commit is contained in:
parent
437c0b55a6
commit
72847dbc77
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue