summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-02-08 14:46:20 +0100
committerGitHub <noreply@github.com>2022-02-08 14:46:20 +0100
commitc58f8d6025e226404b80f9a5c742d6bca059e539 (patch)
treef3e85ad250677fdce080644d22540a41af888cb0 /tests
parentf660032a9b26329f5cce650247df18d735519ddc (diff)
parentb8e0a3dbdd61877050328c9ed5ad72922c330a97 (diff)
downloadnextcloud-server-c58f8d6025e226404b80f9a5c742d6bca059e539.tar.gz
nextcloud-server-c58f8d6025e226404b80f9a5c742d6bca059e539.zip
Merge pull request #30945 from nextcloud/techdebt/noid/background-job-time-windows
Background job time windows
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/BackgroundJob/DummyJobList.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php
index 97fc551d8f5..ec06203a477 100644
--- a/tests/lib/BackgroundJob/DummyJobList.php
+++ b/tests/lib/BackgroundJob/DummyJobList.php
@@ -75,9 +75,10 @@ class DummyJobList extends \OC\BackgroundJob\JobList {
/**
* get the next job in the list
*
+ * @param bool $onlyTimeSensitive
* @return IJob|null
*/
- public function getNext() {
+ public function getNext(bool $onlyTimeSensitive = true): ?IJob {
if (count($this->jobs) > 0) {
if ($this->last < (count($this->jobs) - 1)) {
$i = $this->last + 1;