Skip to content

Commit 743cae2

Browse files
committed
chore: Ignore NotFoundException when cleaning up DeleteOrphanedFilesTest
Signed-off-by: Côme Chilliet <[email protected]>
1 parent 0c006ff commit 743cae2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/files/tests/Command/DeleteOrphanedFilesTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use OC\Files\View;
1212
use OCA\Files\Command\DeleteOrphanedFiles;
1313
use OCP\Files\IRootFolder;
14+
use OCP\Files\NotFoundException;
1415
use OCP\Files\StorageNotAvailableException;
1516
use OCP\IDBConnection;
1617
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)