Skip to content

test(gax): fix flakiness in BatcherImplTest.testElementsNotLeaking#13572

Merged
lqiu96 merged 2 commits into
mainfrom
fix-batcher-test-macos-intel
Jun 29, 2026
Merged

test(gax): fix flakiness in BatcherImplTest.testElementsNotLeaking#13572
lqiu96 merged 2 commits into
mainfrom
fix-batcher-test-macos-intel

Conversation

@lqiu96

@lqiu96 lqiu96 commented Jun 29, 2026

Copy link
Copy Markdown
Member

Increase the timeout and use Awaitility to wait for the background task to complete. This avoids timing out on slower machines (like macOS Intel).

Fixes #13565

Increase the timeout and use Awaitility to wait for the background task
to complete. This avoids timing out on slower machines (like macOS Intel).

TAG=agy
CONV=35be4f5a-1538-41fd-9d27-8671b6accae7
@lqiu96
lqiu96 requested review from a team as code owners June 29, 2026 19:23

@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 removes the strict 500ms timeout annotation from the testElementsNotLeaking test and introduces an asynchronous wait using Awaitility before calling future.get(). The reviewer suggests replacing the Awaitility call with a timed future.get(10, TimeUnit.SECONDS) to avoid introducing a new dependency, which is preferred for unblocking CI without adding dependency overhead.

@lqiu96
lqiu96 enabled auto-merge (squash) June 29, 2026 19:29
…x/batching/BatcherImplTest.java

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@lqiu96
lqiu96 merged commit 920d562 into main Jun 29, 2026
295 of 299 checks passed
@lqiu96
lqiu96 deleted the fix-batcher-test-macos-intel branch June 29, 2026 20:13
lqiu96 added a commit that referenced this pull request Jun 30, 2026
…13572)

Increase the timeout and use Awaitility to wait for the background task
to complete. This avoids timing out on slower machines (like macOS
Intel).

Fixes #13565
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.

Nightly-java8 build on macos-15-intel failed.

2 participants