Commit 8a22142
committed
test(bigquery): Fix flaky ITBigQueryTest#testProjectIDFastSQLQueryWithJobId
This PR fixes a flaky integration test by replacing a strict string assertion
on a backend error message ("Cannot parse as CloudRegion.") with a more robust
assertion on the HTTP status code (400 Bad Request) and a flexible substring
check.
Fixes #121351 parent 52e041a commit 8a22142
File tree
1 file changed
+4
-2
lines changed- java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it
1 file changed
+4
-2
lines changedjava-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4700 | 4700 | | |
4701 | 4701 | | |
4702 | 4702 | | |
| 4703 | + | |
4703 | 4704 | | |
4704 | | - | |
4705 | | - | |
4706 | 4705 | | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
4707 | 4709 | | |
4708 | 4710 | | |
4709 | 4711 | | |
| |||
0 commit comments