Skip to content

Commit b67db50

Browse files
committed
fix test case
1 parent a90bf83 commit b67db50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java-core/google-cloud-core/src/test/java/com/google/cloud/TimestampTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ void parseTimestampWithTimeZoneOffset() {
249249
assertThat(Timestamp.parseTimestampDuration("9999-12-31T23:59:59.999999998Z"))
250250
.isEqualTo(Timestamp.ofTimeSecondsAndNanos(Timestamp.MAX_VALUE.getSeconds(), 999999998));
251251
// Common use cases
252-
assertThat(Timestamp.parseTimestampDuration("2020-07-10T14:03:00-07:00"))
253-
.isEqualTo(Timestamp.ofTimeSecondsAndNanos(1594414980, 0));
252+
assertThat(Timestamp.parseTimestampDuration("2020-07-10T14:03:00.123-07:00"))
253+
.isEqualTo(Timestamp.ofTimeSecondsAndNanos(1594414980, 123000000));
254254
assertThat(Timestamp.parseTimestampDuration("2020-12-06T19:21:12.123+05:30"))
255255
.isEqualTo(Timestamp.ofTimeSecondsAndNanos(1607262672, 123000000));
256256
// We also confirm that parsing a timestamp with nano precision will behave the same as the

0 commit comments

Comments
 (0)