Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4930093

Browse files
authored
test: fix flaky IT testExecuteSelectWithCredentials (#3497)
Use priority instead of job timeout to force non-fast query in executeSelect.
1 parent8f2e5c5 commit4930093

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
importcom.google.cloud.bigquery.PolicyTags;
110110
importcom.google.cloud.bigquery.PrimaryKey;
111111
importcom.google.cloud.bigquery.QueryJobConfiguration;
112+
importcom.google.cloud.bigquery.QueryJobConfiguration.Priority;
112113
importcom.google.cloud.bigquery.QueryParameterValue;
113114
importcom.google.cloud.bigquery.Range;
114115
importcom.google.cloud.bigquery.RangePartitioning;
@@ -191,7 +192,6 @@
191192
importjava.util.logging.Logger;
192193
importorg.junit.AfterClass;
193194
importorg.junit.BeforeClass;
194-
importorg.junit.Ignore;
195195
importorg.junit.Rule;
196196
importorg.junit.Test;
197197
importorg.junit.rules.Timeout;
@@ -3251,7 +3251,6 @@ public void testExecuteSelectDefaultConnectionSettings() throws SQLException {
32513251
}
32523252

32533253
@Test
3254-
@Ignore("https://github.com/googleapis/java-bigquery/issues/3471")
32553254
publicvoidtestExecuteSelectWithCredentials()throwsSQLException {
32563255
// This test validate that executeSelect uses the same credential provided by the BigQuery
32573256
// object used to create the Connection client.
@@ -3272,7 +3271,7 @@ public void testExecuteSelectWithCredentials() throws SQLException {
32723271

32733272
ConnectionSettingsconnectionSettings =
32743273
ConnectionSettings.newBuilder()
3275-
.setJobTimeoutMs(10L)// Force non-fast query to use BigQueryReadClient.
3274+
.setPriority(Priority.INTERACTIVE)// Force non-fast query to use BigQueryReadClient.
32763275
.setDefaultDataset(DatasetId.of(DATASET))
32773276
.build();
32783277
ConnectionconnectionGoodCredentials =

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp