mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix watcher tests to explicitly set policy
This commit is contained in:
parent
7c9405a921
commit
943fc1b8e5
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
|
|
@ -39,6 +39,7 @@ class Watcher extends \Test\TestCase {
|
|||
$storage = $this->getTestStorage();
|
||||
$cache = $storage->getCache();
|
||||
$updater = $storage->getWatcher();
|
||||
$updater->setPolicy(\OC\Files\Cache\Watcher::CHECK_ONCE);
|
||||
|
||||
//set the mtime to the past so it can detect an mtime change
|
||||
$cache->put('', array('storage_mtime' => 10));
|
||||
|
|
@ -79,6 +80,7 @@ class Watcher extends \Test\TestCase {
|
|||
$storage = $this->getTestStorage();
|
||||
$cache = $storage->getCache();
|
||||
$updater = $storage->getWatcher();
|
||||
$updater->setPolicy(\OC\Files\Cache\Watcher::CHECK_ONCE);
|
||||
|
||||
//set the mtime to the past so it can detect an mtime change
|
||||
$cache->put('', array('storage_mtime' => 10));
|
||||
|
|
@ -95,6 +97,7 @@ class Watcher extends \Test\TestCase {
|
|||
$storage = $this->getTestStorage();
|
||||
$cache = $storage->getCache();
|
||||
$updater = $storage->getWatcher();
|
||||
$updater->setPolicy(\OC\Files\Cache\Watcher::CHECK_ONCE);
|
||||
|
||||
//set the mtime to the past so it can detect an mtime change
|
||||
$cache->put('foo.txt', array('storage_mtime' => 10));
|
||||
|
|
|
|||
Loading…
Reference in a new issue