diff --git a/tests/QueueTest.php b/tests/QueueTest.php index c23e711ab..f5cd0c0ff 100644 --- a/tests/QueueTest.php +++ b/tests/QueueTest.php @@ -149,7 +149,7 @@ public function testQueueRelease(): void { Carbon::setTestNow(); $queue = 'test'; - $delay = 123; + $delay = now()->addSeconds(123); Queue::push($queue, ['action' => 'QueueRelease'], 'test'); $job = Queue::pop($queue); @@ -164,7 +164,7 @@ public function testQueueRelease(): void $this->assertEquals(1, $releasedJob['attempts']); $this->assertNull($releasedJob['reserved_at']); $this->assertEquals( - Carbon::now()->addRealSeconds($delay)->getTimestamp(), + $delay->getTimestamp(), $releasedJob['available_at'], ); $this->assertEquals(Carbon::now()->getTimestamp(), $releasedJob['created_at']); @@ -174,7 +174,7 @@ public function testQueueRelease(): void public function testQueueDeleteAndRelease(): void { $queue = 'test'; - $delay = 123; + $delay = now()->addSeconds(123); Queue::push($queue, ['action' => 'QueueDeleteAndRelease'], 'test'); $job = Queue::pop($queue);