Merge pull request #5707 from owncloud/fixwrongfilesizeintests

Fixed filesize issue in watchr test
This commit is contained in:
Morris Jobke 2013-11-11 06:26:38 -08:00
commit da20fb7922
1 changed files with 3 additions and 0 deletions

View File

@ -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']);