From cbcdf69dc218a9767b2682c0a1825f9f36e78266 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 9 Nov 2016 16:14:54 +0100 Subject: only query substorages to calculate the final mtime/size/etag lazily Signed-off-by: Robin Appelman --- tests/lib/Files/ViewTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/lib/Files/ViewTest.php') 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); } /** -- cgit v1.2.3