aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-05-12 20:57:38 +0200
committerGitHub <noreply@github.com>2022-05-12 20:57:38 +0200
commit23771f0587bec99815e76bea3a85c86580c4cf2e (patch)
treeb853a8dae08e0633d360d537b472998d78917307 /tests
parent9e1d4d17ec792d8abcec2f9262472f5bb7a43acf (diff)
parentfcae6a68c347e2913cc29f45648be37789f09c29 (diff)
downloadnextcloud-server-23771f0587bec99815e76bea3a85c86580c4cf2e.tar.gz
nextcloud-server-23771f0587bec99815e76bea3a85c86580c4cf2e.zip
Merge pull request #32077 from nextcloud/cleanup/lock
Cleanup lock related code
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Lock/DBLockingProviderTest.php3
-rw-r--r--tests/lib/Lock/NonCachingDBLockingProviderTest.php3
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/lib/Lock/DBLockingProviderTest.php b/tests/lib/Lock/DBLockingProviderTest.php
index d45c379ff08..860e8d73cf0 100644
--- a/tests/lib/Lock/DBLockingProviderTest.php
+++ b/tests/lib/Lock/DBLockingProviderTest.php
@@ -23,7 +23,6 @@ namespace Test\Lock;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Lock\ILockingProvider;
-use Psr\Log\LoggerInterface;
/**
* Class DBLockingProvider
@@ -66,7 +65,7 @@ class DBLockingProviderTest extends LockingProvider {
*/
protected function getInstance() {
$this->connection = \OC::$server->getDatabaseConnection();
- return new \OC\Lock\DBLockingProvider($this->connection, \OC::$server->get(LoggerInterface::class), $this->timeFactory, 3600);
+ return new \OC\Lock\DBLockingProvider($this->connection, $this->timeFactory, 3600);
}
protected function tearDown(): void {
diff --git a/tests/lib/Lock/NonCachingDBLockingProviderTest.php b/tests/lib/Lock/NonCachingDBLockingProviderTest.php
index 973337edb4e..349a175b566 100644
--- a/tests/lib/Lock/NonCachingDBLockingProviderTest.php
+++ b/tests/lib/Lock/NonCachingDBLockingProviderTest.php
@@ -22,7 +22,6 @@
namespace Test\Lock;
use OCP\Lock\ILockingProvider;
-use Psr\Log\LoggerInterface;
/**
* @group DB
@@ -35,7 +34,7 @@ class NonCachingDBLockingProviderTest extends DBLockingProviderTest {
*/
protected function getInstance() {
$this->connection = \OC::$server->getDatabaseConnection();
- return new \OC\Lock\DBLockingProvider($this->connection, \OC::$server->get(LoggerInterface::class), $this->timeFactory, 3600, false);
+ return new \OC\Lock\DBLockingProvider($this->connection, $this->timeFactory, 3600, false);
}
public function testDoubleShared() {