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
Failed to extract signature
2 changed files with
4 additions and
1 deletions
-
apps/files_sharing/tests/TestCase.php
-
tests/lib/Repair/CleanTagsTest.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(); |
|
|
|
|
|
|
|
@ -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)), |
|
|
|
]) |
|
|
|
|