From 120588dd7a22af9f1e85ad85e192c5aede92b32c Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 2 Jun 2015 15:14:37 +0200 Subject: [PATCH] Disable update check test when testing wrappers The checkUpdate test is intended for testing real storages, not wrappers. --- tests/lib/files/storage/storage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php index 4ec474f2f0..2355009c9b 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);