Skip to content

Commit

Permalink
Update gax-java/gax/src/test/java/com/google/api/gax/util/TimeConvers…
Browse files Browse the repository at this point in the history
…ionUtilsTest.java

Co-authored-by: Lawrence Qiu <lawrenceqiu@google.com>
  • Loading branch information
diegomarquezp and lqiu96 authored Aug 13, 2024
1 parent 329c467 commit 5014c4b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ void testToThreeteenDuration_bigInput_doesNotOverflow() {
@Test
void testToJavaTimeDuration_bigInput_doesNotOverflow() {
// we use the max long value for the seconds part and an arbitrary int for the nanos part, so we
// can confirm
// that both components are preserved
// can confirm that both components are preserved
org.threeten.bp.Duration ttDuration = org.threeten.bp.Duration.ofSeconds(Long.MAX_VALUE, 123);
java.time.Duration jtDuration = TimeConversionUtils.toJavaTimeDuration(ttDuration);
assertEquals(jtDuration.getSeconds(), ttDuration.getSeconds());
Expand Down

0 comments on commit 5014c4b

Please sign in to comment.