Skip to content

Commit 0dd845a

Browse files
committed
Fix queue tests which have delay
1 parent b0fdb1f commit 0dd845a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/QueueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public function setUp(): void
2727
// Always start with a clean slate
2828
Queue::getDatabase()->table(Config::get('queue.connections.database.table'))->truncate();
2929
Queue::getDatabase()->table(Config::get('queue.failed.table'))->truncate();
30+
31+
Carbon::setTestNow(Carbon::now());
3032
}
3133

3234
public function testQueueJobLifeCycle(): void
@@ -147,7 +149,6 @@ public function testQueueDeleteReserved(): void
147149

148150
public function testQueueRelease(): void
149151
{
150-
Carbon::setTestNow();
151152
$queue = 'test';
152153
$delay = 123;
153154
Queue::push($queue, ['action' => 'QueueRelease'], 'test');

0 commit comments

Comments
 (0)