diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-10-14 13:27:05 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-16 21:41:51 +0200 |
commit | 416da0dfe9af2701f0298a9ef2f9c24600deb1ab (patch) | |
tree | 178fe79b6948e723763be938f7a2a20632c39f9d /apps/files | |
parent | 54cea05271b887f1c8062c034741df869bc0f055 (diff) | |
download | nextcloud-server-416da0dfe9af2701f0298a9ef2f9c24600deb1ab.tar.gz nextcloud-server-416da0dfe9af2701f0298a9ef2f9c24600deb1ab.zip |
fix delete orphan shares test with object home storage
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/tests/command/deleteorphanedfilestest.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/tests/command/deleteorphanedfilestest.php b/apps/files/tests/command/deleteorphanedfilestest.php index 76fe9dbdfa0..3a1a541d8f1 100644 --- a/apps/files/tests/command/deleteorphanedfilestest.php +++ b/apps/files/tests/command/deleteorphanedfilestest.php @@ -22,6 +22,7 @@ namespace OCA\Files\Tests\Command; use OCA\Files\Command\DeleteOrphanedFiles; +use OCP\Files\StorageNotAvailableException; class DeleteOrphanedFilesTest extends \Test\TestCase { @@ -110,7 +111,11 @@ class DeleteOrphanedFilesTest extends \Test\TestCase { $this->assertCount(0, $this->getFile($fileInfo->getId()), 'Asserts that file gets cleaned up'); - $view->unlink('files/test'); + // since we deleted the storage it might throw a (valid) StorageNotAvailableException + try { + $view->unlink('files/test'); + } catch (StorageNotAvailableException $e) { + } } } |