diff options
Diffstat (limited to 'tests')
-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']); |