Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-11-11 18:26:38 +0400
committerMorris Jobke <morris.jobke@gmail.com>2013-11-11 18:26:38 +0400
commitda20fb79227a512181ab1531d23977a7d2a71c40 (patch)
tree841ef859570070e18afc30c1790cabd54caf64a6
parent43230f11f66b144affee3c753dd8bb86c40a87f0 (diff)
parent7ff6a642b48ded0417f3555b6ecc9a115af51a91 (diff)
Merge pull request #5707 from owncloud/fixwrongfilesizeintests
Fixed filesize issue in watchr test
-rw-r--r--tests/lib/files/cache/watcher.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/files/cache/watcher.php b/tests/lib/files/cache/watcher.php
index 749b1ab75a3..1920c276907 100644
--- a/tests/lib/files/cache/watcher.php
+++ b/tests/lib/files/cache/watcher.php
@@ -53,6 +53,9 @@ class Watcher extends \PHPUnit_Framework_TestCase {
$cache->put('bar.test', array('storage_mtime' => 10));
$storage->file_put_contents('bar.test', 'test data');
+ // make sure that PHP can read the new size correctly
+ clearstatcache();
+
$updater->checkUpdate('bar.test');
$cachedData = $cache->get('bar.test');
$this->assertEquals(9, $cachedData['size']);