mirror of
https://github.com/nextcloud/server.git
synced 2026-02-16 09:19:43 -05:00
test: mark share test cleanup as running across all shards
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
82d7eaf80a
commit
ecf1cc2c3c
2 changed files with 4 additions and 1 deletions
|
|
@ -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)),
|
||||
])
|
||||
|
|
|
|||
Loading…
Reference in a new issue