Skip to content

Commit 22bde5d

Browse files
committed
chore: Ignore NotFoundException when cleaning up DeleteOrphanedFilesTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 31fa386 commit 22bde5d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/files/tests/Command/DeleteOrphanedFilesTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use OCA\Files\Command\DeleteOrphanedFiles;
1414
use OCP\Console\IOutput;
1515
use OCP\Files\IRootFolder;
16+
use OCP\Files\NotFoundException;
1617
use OCP\Files\StorageNotAvailableException;
1718
use OCP\IDBConnection;
1819
use OCP\IUserManager;
@@ -50,7 +51,7 @@ protected function tearDown(): void {
5051
try {
5152
$view = new View('/' . $this->user1 . '/files');
5253
$view->unlink('test');
53-
} catch (StorageNotAvailableException $e) {
54+
} catch (StorageNotAvailableException|NotFoundException $e) {
5455
}
5556

5657
$userManager = Server::get(IUserManager::class);

0 commit comments

Comments
 (0)