summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-06-02 15:14:37 +0200
committerVincent Petry <pvince81@owncloud.com>2015-06-02 15:14:37 +0200
commit120588dd7a22af9f1e85ad85e192c5aede92b32c (patch)
tree7cdced20c0ee3cb872354004cc81e7f2f81b6416
parentc4cb93e6448f217afad33c684e02fd9e8614f976 (diff)
downloadnextcloud-server-120588dd7a22af9f1e85ad85e192c5aede92b32c.tar.gz
nextcloud-server-120588dd7a22af9f1e85ad85e192c5aede92b32c.zip
Disable update check test when testing wrappers
The checkUpdate test is intended for testing real storages, not wrappers.
-rw-r--r--tests/lib/files/storage/storage.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php
index 4ec474f2f01..2355009c9bf 100644
--- a/tests/lib/files/storage/storage.php
+++ b/tests/lib/files/storage/storage.php
@@ -316,6 +316,9 @@ abstract class Storage extends \Test\TestCase {
* no change.
*/
public function testCheckUpdate() {
+ if ($this->instance instanceof \OC\Files\Storage\Wrapper\Wrapper) {
+ $this->markTestSkipped('Cannot test update check on wrappers');
+ }
$textFile = \OC::$SERVERROOT . '/tests/data/lorem.txt';
$watcher = $this->instance->getWatcher();
$watcher->setPolicy(Watcher::CHECK_ALWAYS);