From ddbeb4cac95aa6dff382a276cc847002f16b7278 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 16 Jul 2024 17:48:03 +0200 Subject: [PATCH] test: mark share test cleanup as running across all shards Signed-off-by: Robin Appelman --- apps/files_sharing/tests/TestCase.php | 2 +- tests/lib/Repair/CleanTagsTest.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/tests/TestCase.php b/apps/files_sharing/tests/TestCase.php index a1c4710e30e..4545e67be32 100644 --- a/apps/files_sharing/tests/TestCase.php +++ b/apps/files_sharing/tests/TestCase.php @@ -118,7 +118,7 @@ abstract class TestCase extends \Test\TestCase { $qb->execute(); $qb = \OC::$server->getDatabaseConnection()->getQueryBuilder(); - $qb->delete('filecache'); + $qb->delete('filecache')->runAcrossAllShards(); $qb->execute(); parent::tearDown(); diff --git a/tests/lib/Repair/CleanTagsTest.php b/tests/lib/Repair/CleanTagsTest.php index cbe056d1e03..f2e62b85aca 100644 --- a/tests/lib/Repair/CleanTagsTest.php +++ b/tests/lib/Repair/CleanTagsTest.php @@ -65,6 +65,7 @@ class CleanTagsTest extends \Test\TestCase { ->execute(); $qb->delete('filecache') + ->runAcrossAllShards() ->execute(); } @@ -176,6 +177,7 @@ class CleanTagsTest extends \Test\TestCase { $fileName = $this->getUniqueID('TestRepairCleanTags', 12); $qb->insert('filecache') ->values([ + 'storage' => $qb->createNamedParameter(1, IQueryBuilder::PARAM_INT), 'path' => $qb->createNamedParameter($fileName), 'path_hash' => $qb->createNamedParameter(md5($fileName)), ]) @@ -183,6 +185,7 @@ class CleanTagsTest extends \Test\TestCase { $fileName = $this->getUniqueID('TestRepairCleanTags', 12); $qb->insert('filecache') ->values([ + 'storage' => $qb->createNamedParameter(1, IQueryBuilder::PARAM_INT), 'path' => $qb->createNamedParameter($fileName), 'path_hash' => $qb->createNamedParameter(md5($fileName)), ]) -- 2.39.5