aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-12-09 14:13:05 +0100
committerRobin Appelman <icewind@owncloud.com>2015-12-09 14:53:24 +0100
commite191953942fe6b32917c5e01f27879db87e369ce (patch)
treefd7afb26e4222b01a7e1f3e0a648105d7ab71015 /tests/lib
parent5c95939bf388111a21ca94461e37b1b0b0b38159 (diff)
downloadnextcloud-server-e191953942fe6b32917c5e01f27879db87e369ce.tar.gz
nextcloud-server-e191953942fe6b32917c5e01f27879db87e369ce.zip
Remove all locks after ttl from the db
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/lock/dblockingprovider.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/lib/lock/dblockingprovider.php b/tests/lib/lock/dblockingprovider.php
index d679b1ea677..2032110f4f0 100644
--- a/tests/lib/lock/dblockingprovider.php
+++ b/tests/lib/lock/dblockingprovider.php
@@ -85,13 +85,7 @@ class DBLockingProvider extends LockingProvider {
$this->assertEquals(3, $this->getLockEntryCount());
- $this->instance->cleanEmptyLocks();
-
- $this->assertEquals(3, $this->getLockEntryCount());
-
- $this->instance->releaseAll();
-
- $this->instance->cleanEmptyLocks();
+ $this->instance->cleanExpiredLocks();
$this->assertEquals(2, $this->getLockEntryCount());
}