Skip to content

[6.x] Fix flaky TracksLastModified file timestamp test#14634

Merged
jasonvarga merged 1 commit into
6.xfrom
ancient-jay
May 8, 2026
Merged

[6.x] Fix flaky TracksLastModified file timestamp test#14634
jasonvarga merged 1 commit into
6.xfrom
ancient-jay

Conversation

@jasonvarga
Copy link
Copy Markdown
Member

The it_gets_last_updated_at_from_file test in TracksLastModifiedTest is intermittently flaky on CI.

The entry under test is never saved, so its file doesn't exist on disk. Both fileLastModified() and lastModified() fall through to Carbon::now(). If the second-tick rolls over between the two calls, the timestamps differ by 1 and the assertion fails (e.g. 1778265757 vs 1778265756).

Freezing time at the start of the test pins both calls to the same instant.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jasonvarga jasonvarga merged commit a3cc843 into 6.x May 8, 2026
18 checks passed
@jasonvarga jasonvarga deleted the ancient-jay branch May 8, 2026 19:05
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.

1 participant