Skip to content

chore(vertexai): Improve the test helpers.#14178

Merged
BenjaminKazemi merged 1 commit intogoogleapis:mainfrom
BenjaminKazemi:vertexai_test_helper
Mar 16, 2026
Merged

chore(vertexai): Improve the test helpers.#14178
BenjaminKazemi merged 1 commit intogoogleapis:mainfrom
BenjaminKazemi:vertexai_test_helper

Conversation

@BenjaminKazemi
Copy link
Contributor

chore(vertexai): Improve the test helpers.

@BenjaminKazemi BenjaminKazemi requested review from a team as code owners March 14, 2026 03:55
Copy link
Contributor

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

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 effectively refactors the test helpers by centralizing them into a new test_helper.go file. This significantly reduces code duplication across test files. The introduction of a generic waitForOperation function using generics and reflection is a clever way to handle various long-running operations. The tests are also improved, for example by adding value assertions in the "Get" agent engine test. I have one suggestion to improve consistency in one of the new helper functions.

@BenjaminKazemi BenjaminKazemi merged commit 210485b into googleapis:main Mar 16, 2026
10 checks passed
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.

2 participants