Skip to content

Commit

Permalink
Fix integration tests on newer JDKs using a smaller of Instant resolu…
Browse files Browse the repository at this point in the history
…tion.

[#572][resolves #571]

Co-authored-by: Francesco Komauli <[email protected]>
  • Loading branch information
fkomauli and Francesco Komauli authored Dec 7, 2022
1 parent 964b075 commit 911a2bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ void localDateTime() {
testCodec(LocalDateTime.class, LocalDateTime.now().truncatedTo(ChronoUnit.MICROS), "TIMESTAMP");
testCodec(LocalDateTime.class, LocalDateTime.now().truncatedTo(ChronoUnit.MICROS), "TIMESTAMPTZ");

Instant now = Instant.now();
Instant now = Instant.now().truncatedTo(ChronoUnit.MICROS);
LocalDateTime ldt = now.atZone(ZoneId.systemDefault()).toLocalDateTime();
testCodec(LocalDateTime.class, ldt, Instant.class, (actual, expected) -> {

Expand Down

0 comments on commit 911a2bc

Please sign in to comment.