Skip to content

Conversation

@mfateev
Copy link
Member

@mfateev mfateev commented Jan 7, 2026

Summary

  • Replace fixed Thread.sleep(600ms) + immediate assertions with assertEventually() polling pattern
  • The previous approach was susceptible to flakiness in CI environments where 600ms wasn't always sufficient for metrics to be reported
  • Uses existing assertEventually utility which polls every 100ms with a 5-second timeout
  • Matches the pattern already used in io.temporal.client.functional.MetricsTest

Test plan

  • All MetricsTest tests pass locally
  • CI passes

Replace fixed Thread.sleep(600ms) + immediate assertions with
assertEventually() polling pattern. The previous approach was
susceptible to flakiness in CI environments where 600ms wasn't
always sufficient for metrics to be reported.

The fix uses the existing assertEventually utility which polls
every 100ms with a 5-second timeout, matching the pattern already
used in io.temporal.client.functional.MetricsTest.
@mfateev mfateev requested a review from a team as a code owner January 7, 2026 01:46
@mfateev mfateev closed this Jan 7, 2026
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