summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-01-07 18:13:35 +0100
committerRobin Appelman <icewind@owncloud.com>2016-01-15 15:36:52 +0100
commitddbbe1742fda9b508da5c6369dc2a2d5e19cec95 (patch)
treeb69d7c4e73212e7d08cbf40dd8f66d3b85e537c0 /tests/lib
parentfcec704174a384f93214a1f2b83bed385e763ff6 (diff)
downloadnextcloud-server-ddbbe1742fda9b508da5c6369dc2a2d5e19cec95.tar.gz
nextcloud-server-ddbbe1742fda9b508da5c6369dc2a2d5e19cec95.zip
propagate folder size in the same query for write updates
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/cache/file.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/cache/file.php b/tests/lib/cache/file.php
index 0880e7e1282..92b784bf8ea 100644
--- a/tests/lib/cache/file.php
+++ b/tests/lib/cache/file.php
@@ -87,7 +87,9 @@ class FileCache extends \Test_Cache {
}
protected function tearDown() {
- $this->instance->remove('hack', 'hack');
+ if ($this->instance) {
+ $this->instance->remove('hack', 'hack');
+ }
\OC_User::setUserId($this->user);
\OC::$server->getConfig()->setSystemValue('cachedirectory', $this->datadir);