From 4b0d17e2ae22c58bee3447e49834d01377df2c9a Mon Sep 17 00:00:00 2001 From: myrmidex Date: Wed, 18 Mar 2026 21:54:20 +0100 Subject: [PATCH] Fix flaky boundary test with freezeTime --- tests/Unit/Jobs/CleanupArticlesJobTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Unit/Jobs/CleanupArticlesJobTest.php b/tests/Unit/Jobs/CleanupArticlesJobTest.php index 8e58f0d..828ae0f 100644 --- a/tests/Unit/Jobs/CleanupArticlesJobTest.php +++ b/tests/Unit/Jobs/CleanupArticlesJobTest.php @@ -100,6 +100,8 @@ public function test_cascade_deletes_route_articles(): void public function test_preserves_article_at_exact_retention_boundary(): void { + $this->freezeTime(); + $boundary = Article::factory()->for(Feed::factory())->create([ 'created_at' => now()->subDays(30), ]);