Skip to content

Commit 0f51ff5

Browse files
committed
chore: remove sleep for one second and use carbon to jump forward
1 parent 7d92c5f commit 0f51ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Integration/Models/ThreadTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
$threadFromToday = createThreadFromToday();
8989
$threadFromTwoDaysAgo = createThreadFromTwoDaysAgo();
9090

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

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

0 commit comments

Comments
 (0)