Skip to content

test(showcase): migrate Thread.sleep calls to Awaitility#13728

Open
blakeli0 wants to merge 3 commits into
googleapis:mainfrom
blakeli0:migrate-showcase-awaitility
Open

test(showcase): migrate Thread.sleep calls to Awaitility#13728
blakeli0 wants to merge 3 commits into
googleapis:mainfrom
blakeli0:migrate-showcase-awaitility

Conversation

@blakeli0

Copy link
Copy Markdown
Contributor

Migrate Thread.sleep and loop constructs in java-showcase to Awaitility.

@blakeli0 blakeli0 requested review from a team as code owners July 10, 2026 20:37

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces manual Thread.sleep busy-waiting loops with Awaitility across several integration tests to improve reliability and performance, and adds the awaitility dependency to pom.xml. The review feedback suggests optimizing the usage of Awaitility by leveraging its until(Callable, Predicate) overload. This allows directly returning the evaluated results and avoids redundant calls to metricReader.collectAllMetrics() in ITCompositeTracer, ITOtelGoldenMetrics, and ITOtelMetrics.

@blakeli0 blakeli0 requested a review from lqiu96 July 10, 2026 21:12
@blakeli0 blakeli0 changed the title chore(showcase): migrate Thread.sleep calls to Awaitility test(showcase): migrate Thread.sleep calls to Awaitility Jul 10, 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