summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/ViewTest.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-11-09 16:14:54 +0100
committerRobin Appelman <robin@icewind.nl>2016-11-10 13:59:22 +0100
commitcbcdf69dc218a9767b2682c0a1825f9f36e78266 (patch)
tree8693c71dbd7917795b2e8bbf735f6fc7f9c07f09 /tests/lib/Files/ViewTest.php
parent742c215946555371b2ae1e855cefa65e5cc712a3 (diff)
downloadnextcloud-server-cbcdf69dc218a9767b2682c0a1825f9f36e78266.tar.gz
nextcloud-server-cbcdf69dc218a9767b2682c0a1825f9f36e78266.zip
only query substorages to calculate the final mtime/size/etag lazily
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/Files/ViewTest.php')
-rw-r--r--tests/lib/Files/ViewTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Files/ViewTest.php b/tests/lib/Files/ViewTest.php
index b0233116ed5..4c264472385 100644
--- a/tests/lib/Files/ViewTest.php
+++ b/tests/lib/Files/ViewTest.php
@@ -842,10 +842,12 @@ class ViewTest extends \Test\TestCase {
'storage_mtime' => $past
));
+ $oldEtag = $oldFolderInfo->getEtag();
+
$view->getFileInfo('/test/sub/storage/test.txt');
$newFolderInfo = $view->getFileInfo('/test');
- $this->assertNotEquals($newFolderInfo->getEtag(), $oldFolderInfo->getEtag());
+ $this->assertNotEquals($newFolderInfo->getEtag(), $oldEtag);
}
/**