File tree Expand file tree Collapse file tree
java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717package com .google .cloud .bigquery .jdbc .it ;
1818
19+ import static com .google .common .truth .Truth .assertThat ;
1920import static org .junit .jupiter .api .Assertions .assertEquals ;
2021import static org .junit .jupiter .api .Assertions .assertFalse ;
2122import static org .junit .jupiter .api .Assertions .assertNotEquals ;
@@ -321,9 +322,7 @@ public void testSetTimeout() throws SQLException {
321322 assertEquals (1 , statement .getQueryTimeout ());
322323 SQLException e =
323324 assertThrows (SQLException .class , () -> statement .executeQuery (ITBase .query300seconds ));
324- assertEquals (
325- "BigQueryException during runQuery\n Job execution was cancelled: Job timed out" ,
326- e .getMessage ());
325+ assertThat (e .getMessage ()).contains ("Job execution was cancelled: Job timed out" );
327326 statement .close ();
328327 connection .close ();
329328 }
You can’t perform that action at this time.
0 commit comments