From 16727fdd78b0fc0e8f5786de257e5ef230b0dfcb Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 25 Jun 2025 18:15:02 +0200 Subject: perf: cache server checks in local cache, not session Signed-off-by: Christoph Wurst --- tests/lib/UtilCheckServerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/lib/UtilCheckServerTest.php') diff --git a/tests/lib/UtilCheckServerTest.php b/tests/lib/UtilCheckServerTest.php index accac40112a..f5b3a8800c7 100644 --- a/tests/lib/UtilCheckServerTest.php +++ b/tests/lib/UtilCheckServerTest.php @@ -7,6 +7,7 @@ namespace Test; +use OCP\ICacheFactory; use OCP\ISession; use OCP\ITempManager; use OCP\Server; @@ -45,7 +46,7 @@ class UtilCheckServerTest extends \Test\TestCase { $this->datadir = Server::get(ITempManager::class)->getTemporaryFolder(); file_put_contents($this->datadir . '/.ncdata', '# Nextcloud data directory'); - Server::get(ISession::class)->set('checkServer_succeeded', false); + Server::get(ICacheFactory::class)->createLocal('system')->set('checkServer_succeeded', false, 10); } protected function tearDown(): void { -- cgit v1.2.3