Skip to content

Commit d3e2fab

Browse files
authored
chore: remove sleep for one second and use carbon to jump forward (#1169)
1 parent 7f7d24d commit d3e2fab

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)