Skip to content

Commit

Permalink
Fix queue tests which have delay
Browse files Browse the repository at this point in the history
  • Loading branch information
stubbo committed Jan 12, 2024
1 parent b0fdb1f commit 0dd845a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/QueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public function setUp(): void
// Always start with a clean slate
Queue::getDatabase()->table(Config::get('queue.connections.database.table'))->truncate();
Queue::getDatabase()->table(Config::get('queue.failed.table'))->truncate();

Carbon::setTestNow(Carbon::now());
}

public function testQueueJobLifeCycle(): void
Expand Down Expand Up @@ -147,7 +149,6 @@ public function testQueueDeleteReserved(): void

public function testQueueRelease(): void
{
Carbon::setTestNow();
$queue = 'test';
$delay = 123;
Queue::push($queue, ['action' => 'QueueRelease'], 'test');
Expand Down

0 comments on commit 0dd845a

Please sign in to comment.