diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-09 16:14:54 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-10 13:59:22 +0100 |
commit | cbcdf69dc218a9767b2682c0a1825f9f36e78266 (patch) | |
tree | 8693c71dbd7917795b2e8bbf735f6fc7f9c07f09 /apps | |
parent | 742c215946555371b2ae1e855cefa65e5cc712a3 (diff) | |
download | nextcloud-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 'apps')
-rw-r--r-- | apps/files_sharing/tests/SizePropagationTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/SizePropagationTest.php b/apps/files_sharing/tests/SizePropagationTest.php index 04db505e8a5..9d80633b46a 100644 --- a/apps/files_sharing/tests/SizePropagationTest.php +++ b/apps/files_sharing/tests/SizePropagationTest.php @@ -102,6 +102,7 @@ class SizePropagationTest extends TestCase { $this->assertTrue($recipientView->file_exists('/sharedfolder/subfolder/foo.txt')); $recipientRootInfo = $recipientView->getFileInfo('', false); $recipientRootInfoWithMounts = $recipientView->getFileInfo('', true); + $oldRecipientSize = $recipientRootInfoWithMounts->getSize(); // when file changed as recipient $recipientView->file_put_contents('/sharedfolder/subfolder/foo.txt', 'foobar'); @@ -112,7 +113,7 @@ class SizePropagationTest extends TestCase { // but the size including mountpoints increases $newRecipientRootInfo = $recipientView->getFileInfo('', true); - $this->assertEquals($recipientRootInfoWithMounts->getSize() +3, $newRecipientRootInfo->getSize()); + $this->assertEquals($oldRecipientSize +3, $newRecipientRootInfo->getSize()); // size of owner's root increases $this->loginAsUser(self::TEST_FILES_SHARING_API_USER2); |