Skip to content

Commit 922ad35

Browse files
committed
test(bigquery): warm up client in beforeClass to stabilize testFastSQLQueryMultiPage
b/467064659
1 parent 79e26b8 commit 922ad35

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it

java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,9 @@ static void beforeClass() throws InterruptedException, IOException {
11841184
Job jobLargeTable = bigquery.create(JobInfo.of(configurationLargeTable));
11851185
jobLargeTable = jobLargeTable.waitFor();
11861186
assertNull(jobLargeTable.getStatus().getError());
1187+
1188+
// Warmup query to initialize connection and avoid cold start timeout in subsequent tests
1189+
bigquery.query(QueryJobConfiguration.of("SELECT 1"));
11871190
}
11881191

11891192
@AfterAll

0 commit comments

Comments
 (0)