diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-03-24 14:07:43 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-04-07 08:24:13 +0200 |
commit | cdedda99e4b7f66f136d7db4788c2f033df2d442 (patch) | |
tree | 8a0650a3001c9a095c3bb104a206b697e8125eeb /tests | |
parent | 9b930cd01d2a536cfa21ba08a3be737cdfe4e54b (diff) | |
download | nextcloud-server-cdedda99e4b7f66f136d7db4788c2f033df2d442.tar.gz nextcloud-server-cdedda99e4b7f66f136d7db4788c2f033df2d442.zip |
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()); |