Disable update check test when testing wrappers

The checkUpdate test is intended for testing real storages, not
wrappers.
This commit is contained in:
Vincent Petry 2015-06-02 15:14:37 +02:00
parent c4cb93e644
commit 120588dd7a
1 changed files with 3 additions and 0 deletions

View File

@ -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);