Skip to content

[13.x] Fix time-sensitive flaky test in NotificationDatabaseChannelTest#60333

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
KentarouTakeda:fix/notification-database-channel-flaky-test
May 31, 2026
Merged

[13.x] Fix time-sensitive flaky test in NotificationDatabaseChannelTest#60333
taylorotwell merged 1 commit into
laravel:13.xfrom
KentarouTakeda:fix/notification-database-channel-flaky-test

Conversation

@KentarouTakeda
Copy link
Copy Markdown
Contributor

testCustomizeTypeIsSentToDatabase checks the read_at value a notification
writes to the database. The expectation and the sent value each call
Carbon::now(), so the test fails when the two calls land on different seconds.
Freezing time in setUp() keeps them aligned.

Seen on a scheduled run on my fork:
https://github.com/KentarouTakeda/laravel-framework/actions/runs/26611769748/job/78419022756

Happy to open the same fix against 12.x as well if preferred.

@taylorotwell taylorotwell merged commit 5740ab2 into laravel:13.x May 31, 2026
54 checks passed
@taylorotwell
Copy link
Copy Markdown
Member

Thanks!

@KentarouTakeda KentarouTakeda deleted the fix/notification-database-channel-flaky-test branch June 1, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants