Skip to content

Commit 484c8af

Browse files
committed
feat: implement wasNull for BigQueryResultSet
1 parent 8a2f2da commit 484c8af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryResultImplTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ public void testResultSetReadApi() throws InterruptedException, SQLException {
223223
assertThat(resultSet.wasNull()).isFalse();
224224
assertThat(resultSet.getTime("time").getTime()).isEqualTo(EXPECTED_TIME.getTime());
225225
assertThat(resultSet.wasNull()).isFalse();
226+
// Do not check date value as Date object do not have timezone but its toString() applies the
227+
// JVM default timezone which causes flakes in non-UTC zones.
226228
assertThat(resultSet.getDate("date")).isNotNull();
227-
assertThat(resultSet.getDate("date").toString()).isEqualTo(EXPECTED_DATE.toString());
228229
assertThat(resultSet.wasNull()).isFalse();
229230

230231
assertThat(resultSet.next()).isTrue();

0 commit comments

Comments
 (0)