Skip to content

Commit 0317e00

Browse files
committed
test: skip testTrashEntryCreatedWhenSourceNotInCache on object store
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 966db54 commit 0317e00

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/files_trashbin/tests/StorageTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use OC\Files\Cache\Updater;
1313
use OC\Files\Filesystem;
14+
use OC\Files\ObjectStore\ObjectStoreStorage;
1415
use OC\Files\Storage\Common;
1516
use OC\Files\Storage\Local;
1617
use OC\Files\Storage\Temporary;
@@ -126,6 +127,9 @@ public function testTrashEntryCreatedWhenSourceNotInCache(): void {
126127
$this->userView->file_put_contents('uncached.txt', 'foo');
127128

128129
[$storage, $internalPath] = $this->userView->resolvePath('uncached.txt');
130+
if ($storage->instanceOfStorage(ObjectStoreStorage::class)) {
131+
$this->markTestSkipped('object store always has the file in cache');
132+
}
129133
$cache = $storage->getCache();
130134
$cache->remove($internalPath);
131135
$this->assertFalse($cache->inCache($internalPath));

0 commit comments

Comments
 (0)