mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 15:21:00 -04:00
Merge pull request #5707 from owncloud/fixwrongfilesizeintests
Fixed filesize issue in watchr test
This commit is contained in:
commit
da20fb7922
1 changed files with 3 additions and 0 deletions
3
tests/lib/files/cache/watcher.php
vendored
3
tests/lib/files/cache/watcher.php
vendored
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue