Commit d092918
committed
Fix flaky MetricsTest by using polling assertions
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.1 parent 2ff9c2c commit d092918
File tree
1 file changed
+187
-164
lines changed- temporal-sdk/src/test/java/io/temporal/workflow
1 file changed
+187
-164
lines changed
0 commit comments