Commit 4cb170d
authored
test(bigquery): Fix flaky ITBigQueryTest#testProjectIDFastSQLQueryWithJobId (#12675)
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 239b186 commit 4cb170d
File tree
1 file changed
+4
-7
lines changed- java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it
1 file changed
+4
-7
lines changedjava-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4698 | 4698 | | |
4699 | 4699 | | |
4700 | 4700 | | |
4701 | | - | |
4702 | | - | |
4703 | | - | |
4704 | | - | |
4705 | | - | |
4706 | | - | |
4707 | | - | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
4708 | 4705 | | |
4709 | 4706 | | |
4710 | 4707 | | |
| |||
0 commit comments