diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-08 14:53:26 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-08 14:53:26 +0200 |
commit | 1d3d43b1e9cf423e8ce65ef5ad95a9da54a703b5 (patch) | |
tree | bd27c4603778ccb602de4ba427cebfa68bf7222e /tests | |
parent | 53acb4a65fc72e2f383db4d978907e7ce219a4b2 (diff) | |
parent | cdedda99e4b7f66f136d7db4788c2f033df2d442 (diff) | |
download | nextcloud-server-1d3d43b1e9cf423e8ce65ef5ad95a9da54a703b5.tar.gz nextcloud-server-1d3d43b1e9cf423e8ce65ef5ad95a9da54a703b5.zip |
Merge pull request #23553 from owncloud/lock-ttl-execution-time
Make lock ttl configurable
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/lock/dblockingprovider.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/lock/dblockingprovider.php b/tests/lib/lock/dblockingprovider.php index 2032110f4f0..743dbf85613 100644 --- a/tests/lib/lock/dblockingprovider.php +++ b/tests/lib/lock/dblockingprovider.php @@ -64,7 +64,7 @@ class DBLockingProvider extends LockingProvider { */ protected function getInstance() { $this->connection = \OC::$server->getDatabaseConnection(); - return new \OC\Lock\DBLockingProvider($this->connection, \OC::$server->getLogger(), $this->timeFactory); + return new \OC\Lock\DBLockingProvider($this->connection, \OC::$server->getLogger(), $this->timeFactory, 3600); } public function tearDown() { @@ -81,7 +81,7 @@ class DBLockingProvider extends LockingProvider { $this->instance->acquireLock('bar', ILockingProvider::LOCK_EXCLUSIVE); $this->instance->changeLock('asd', ILockingProvider::LOCK_SHARED); - $this->currentTime = 150 + \OC\Lock\DBLockingProvider::TTL; + $this->currentTime = 150 + 3600; $this->assertEquals(3, $this->getLockEntryCount()); |