aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Preview
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-08-15 18:04:55 +0200
committerLouis Chemineau <louis@chmn.me>2024-08-28 10:27:14 +0200
commitb21a399d1a7fab83ff80bc637c176915d3460f2b (patch)
tree19bd20b2640275d01401a4c093aad1ae6b736b78 /tests/lib/Preview
parentcc091b150eb370f16d3c7a076d912b08878af96e (diff)
downloadnextcloud-server-b21a399d1a7fab83ff80bc637c176915d3460f2b.tar.gz
nextcloud-server-b21a399d1a7fab83ff80bc637c176915d3460f2b.zip
fix: implement sharding compatible cleanup for various bits
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/Preview')
-rw-r--r--tests/lib/Preview/BackgroundCleanupJobTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/Preview/BackgroundCleanupJobTest.php b/tests/lib/Preview/BackgroundCleanupJobTest.php
index c07ec42b36b..ccd5dba69cf 100644
--- a/tests/lib/Preview/BackgroundCleanupJobTest.php
+++ b/tests/lib/Preview/BackgroundCleanupJobTest.php
@@ -146,6 +146,10 @@ class BackgroundCleanupJobTest extends \Test\TestCase {
}
public function testCleanupAjax() {
+ if ($this->connection->getShardDefinition('filecache')) {
+ $this->markTestSkipped("ajax cron is not supported for sharded setups");
+ return;
+ }
$files = $this->setup11Previews();
$fileIds = array_map(function (File $f) {
return $f->getId();
@@ -174,6 +178,10 @@ class BackgroundCleanupJobTest extends \Test\TestCase {
}
public function testOldPreviews() {
+ if ($this->connection->getShardDefinition('filecache')) {
+ $this->markTestSkipped("old previews are not supported for sharded setups");
+ return;
+ }
$appdata = \OC::$server->getAppDataDir('preview');
$f1 = $appdata->newFolder('123456781');