Skip to content

fix: resolved flaky test caused by identical generated pubDates for undated feed items#1146

Merged
spacecowboy merged 2 commits into
masterfrom
flaky-test
May 19, 2026
Merged

fix: resolved flaky test caused by identical generated pubDates for undated feed items#1146
spacecowboy merged 2 commits into
masterfrom
flaky-test

Conversation

@spacecowboy

Copy link
Copy Markdown
Owner

No description provided.

@spacecowboy spacecowboy enabled auto-merge (squash) May 19, 2026 19:56
@spacecowboy spacecowboy disabled auto-merge May 19, 2026 19:56
… date generation

- Replaced fallbackPubDate ZonedDateTime parameter with Clock injection in
  FeedItem.updateFromParsedEntry, making time controllable in tests
- Updated RssLocalSync to pass Clock.fixed per item, with a comment explaining
  the reversed-order/fallback-timestamp relationship
- Added JVM unit tests for updateFromParsedEntry date generation (no
  instrumentation needed): parsed date used when present, clock fallback when
  missing, existing date preserved, distinct clocks produce distinct dates
- Improved assertion messages in feedWithNoDatesShouldGetSomeGenerated to
  clearly describe the feed-order-to-date-order expectation
@spacecowboy spacecowboy enabled auto-merge (squash) May 19, 2026 20:09
@spacecowboy spacecowboy merged commit 250e54d into master May 19, 2026
12 checks passed
@spacecowboy spacecowboy deleted the flaky-test branch May 19, 2026 20:19
jenningsloy318 pushed a commit to jenningsloy318/Feeder that referenced this pull request May 29, 2026
…ndated feed items (spacecowboy#1146)

* fix: resolved flaky test caused by identical generated pubDates for undated feed items

* refactor: injected Clock into updateFromParsedEntry for deterministic date generation

- Replaced fallbackPubDate ZonedDateTime parameter with Clock injection in
  FeedItem.updateFromParsedEntry, making time controllable in tests
- Updated RssLocalSync to pass Clock.fixed per item, with a comment explaining
  the reversed-order/fallback-timestamp relationship
- Added JVM unit tests for updateFromParsedEntry date generation (no
  instrumentation needed): parsed date used when present, clock fallback when
  missing, existing date preserved, distinct clocks produce distinct dates
- Improved assertion messages in feedWithNoDatesShouldGetSomeGenerated to
  clearly describe the feed-order-to-date-order expectation
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