Skip to content

Commit

Permalink
fixup! feat(plugin): 重写队列 4
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Mar 31, 2024
1 parent 4914ddf commit 557ac1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Service/BaseQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ public function testRetryDelay()
$this->assertFalse($job->isFailed());
$this->assertSame(3, $job->attempts());
$this->assertFalse($job->isReleased());

$this->time->setTimestamp();
}

public function testJobWillBeDeletedAfterFail()
Expand Down Expand Up @@ -379,5 +381,8 @@ public function testRestart()

$job2 = $this->queueWorker->runNextJob();
$this->assertSame($job->getJobId(), $job2->getJobId());

// @internal Reset internal cache for next queue driver
$this->cache->delete('wei:queue:restart');

Check failure on line 386 in tests/Service/BaseQueueTest.php

View workflow job for this annotation

GitHub Actions / phpstan (ubuntu-latest, 8.3)

Access to an undefined property MiaoxingTest\Plugin\Service\BaseQueueTest::$cache.
}
}

0 comments on commit 557ac1d

Please sign in to comment.