diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-05 16:58:05 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-05 17:01:02 +0100 |
commit | 7ff6a642b48ded0417f3555b6ecc9a115af51a91 (patch) | |
tree | 7a811f6c2caacfe0f24307b14b5b3e32bd8df776 | |
parent | d48ba5a5bf0668690e54d4ed68f8aa31d8946cf9 (diff) | |
download | nextcloud-server-7ff6a642b48ded0417f3555b6ecc9a115af51a91.tar.gz nextcloud-server-7ff6a642b48ded0417f3555b6ecc9a115af51a91.zip |
Fixed filesize issue in watchr test
Added clearstatcache to make sure we get the correct file size after
re-writing into the same file.
This failed on openSUSE 12.3 x86_64
-rw-r--r-- | tests/lib/files/cache/watcher.php | 3 |
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']); |