Skip to content

[Backport release-1.19] test(health): measure the health check timeout with time.monotonic() - #1330

Merged
CasperGN merged 1 commit into
release-1.19from
backport-1328-to-release-1.19
Oct 21, 2026
Merged

CasperGN merged 1 commit into
release-1.19from
backport-1328-to-release-1.19

Conversation

@dapr-bot

Copy link
Copy Markdown
Collaborator

Backport 02e3f00 from #1328.

…1328)

DaprHealth computes its deadline with time.monotonic(), but the tests
measured the elapsed time with time.time(). On Windows the two clocks
have different resolutions, so the >= 2.5 check failed now and then
(2.4987 s) although the code waited the full timeout. Use the same
clock in the tests.

Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 02e3f00)
Signed-off-by: dapr-bot <dapr-bot@users.noreply.github.com>
@dapr-bot dapr-bot added automerge allows dapr bot to merge a PR after tests pass autoupdate labels Oct 21, 2026
@dapr-bot
dapr-bot requested review from a team as code owners October 21, 2026 14:31
@dapr-bot
dapr-bot enabled auto-merge (squash) October 21, 2026 14:31
@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release-1.19@e49480c). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             release-1.19    #1330   +/-   ##
===============================================
  Coverage                ?   87.15%           
===============================================
  Files                   ?      163           
  Lines                   ?    13066           
  Branches                ?        0           
===============================================
  Hits                    ?    11388           
  Misses                  ?     1678           
  Partials                ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CasperGN
CasperGN disabled auto-merge October 21, 2026 14:50
@CasperGN
CasperGN merged commit e4780d9 into release-1.19 Oct 21, 2026
28 checks passed
@dapr-bot
dapr-bot deleted the backport-1328-to-release-1.19 branch October 21, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge allows dapr bot to merge a PR after tests pass autoupdate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants