Skip to content

test(discovery): fix second-boundary race in refresh error timestamp check (backport) - #4498

Merged
stevenvegt merged 1 commit into
V6.2from
V6_2/backport-refresh-error-timestamp
Sep 9, 2026
Merged

test(discovery): fix second-boundary race in refresh error timestamp check (backport)#4498
stevenvegt merged 1 commit into
V6.2from
V6_2/backport-refresh-error-timestamp

Conversation

@stevenvegt

Copy link
Copy Markdown
Member

Backport of #4497 to V6.2, cherry-picked without conflicts. See that PR for the analysis.

…check

LastOccurrence is stored as whole seconds. The assertion compared it with
"now minus one second", also truncated, using strict greater-than. When
the store happens at the end of a second and the check runs in the next
one, both truncate to the same value and the assertion fails. Compare
against a timestamp taken before the call instead.

Assisted-by: AI
(cherry picked from commit 33d9187)
@qltysh

qltysh Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Qlty


Coverage Impact

This PR will not change total coverage.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@stevenvegt
stevenvegt merged commit bfb0586 into V6.2 Sep 9, 2026
8 checks passed
@stevenvegt
stevenvegt deleted the V6_2/backport-refresh-error-timestamp branch September 9, 2026 09:40
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