Skip to content
Snippets Groups Projects
Commit da20fb79 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #5707 from owncloud/fixwrongfilesizeintests

Fixed filesize issue in watchr test
parents 43230f11 7ff6a642
Branches
No related tags found
No related merge requests found
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment