test: mark share test cleanup as running across all shards

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2024-07-16 17:48:03 +02:00 committed by Louis
parent 82d7eaf80a
commit ecf1cc2c3c
2 changed files with 4 additions and 1 deletions

View file

@ -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();

View file

@ -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)),
])