Skip to content

Commit

Permalink
chore: remove sleep for one second and use carbon to jump forward (#1169
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Nathan-Cowin authored Nov 2, 2024
1 parent 7f7d24d commit d3e2fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Integration/Models/ThreadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
$threadFromToday = createThreadFromToday();
$threadFromTwoDaysAgo = createThreadFromTwoDaysAgo();

sleep(1);
$this->travelTo(Carbon::now()->addSecond());

dispatch_sync(new CreateReply(Str::uuid(), 'Hello world', User::factory()->create(), $threadFromTwoDaysAgo));

Expand Down

0 comments on commit d3e2fab

Please sign in to comment.