diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-07-29 15:10:42 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-07-29 15:10:42 +0200 |
commit | 943fc1b8e56a8e9121bdfb441e540de044075641 (patch) | |
tree | 8a1831f5092773f18b9495ad718897287ad06dbd /tests | |
parent | 7c9405a9214dc159eab764bc81d0202593eaac06 (diff) | |
download | nextcloud-server-943fc1b8e56a8e9121bdfb441e540de044075641.tar.gz nextcloud-server-943fc1b8e56a8e9121bdfb441e540de044075641.zip |
Fix watcher tests to explicitly set policy
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 e6947e36a17..acc03cc4c77 100644 --- a/tests/lib/files/cache/watcher.php +++ b/tests/lib/files/cache/watcher.php @@ -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)); |