Skip to content

chore(bigquery-jdbc): fix flaky testSetTimeout test#13549

Merged
logachev merged 5 commits into
mainfrom
kirl/flaky_test
Jun 24, 2026
Merged

chore(bigquery-jdbc): fix flaky testSetTimeout test#13549
logachev merged 5 commits into
mainfrom
kirl/flaky_test

Conversation

@logachev

Copy link
Copy Markdown
Contributor

Seems like BQ can cache results of existing query, so timeout is not reliable. This query is guaranteed to run for 300 seconds, so it will ensure job is killed by timeout.

@logachev logachev requested review from a team as code owners June 24, 2026 07:42

@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 extracts a 300-second delay query string into ITBase to reuse it across multiple integration tests, and removes an unused helper method in ITStatementTest. The feedback recommends declaring this query string as a public static final constant named QUERY_300_SECONDS to follow standard Java naming conventions. Additionally, it is advised to reference this constant statically in the test classes rather than using inheritance (extends ITBase) solely to access the field.

@keshavdandeva keshavdandeva self-requested a review June 24, 2026 21:10
@logachev logachev merged commit 78d711c into main Jun 24, 2026
193 checks passed
@logachev logachev deleted the kirl/flaky_test branch June 24, 2026 21:46
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