Browse Source

test: mark share test cleanup as running across all shards

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/46639/head
Robin Appelman 1 year ago
committed by Louis Chemineau
parent
commit
ddbeb4cac9
Failed to extract signature
  1. 2
      apps/files_sharing/tests/TestCase.php
  2. 3
      tests/lib/Repair/CleanTagsTest.php

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

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

Loading…
Cancel
Save