Skip to content

Commit 911a2bc

Browse files
fkomauliFrancesco Komauli
and
Francesco Komauli
authored
Fix integration tests on newer JDKs using a smaller of Instant resolution.
[#572][resolves #571] Co-authored-by: Francesco Komauli <[email protected]>
1 parent 964b075 commit 911a2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/io/r2dbc/postgresql/AbstractCodecIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ void localDateTime() {
435435
testCodec(LocalDateTime.class, LocalDateTime.now().truncatedTo(ChronoUnit.MICROS), "TIMESTAMP");
436436
testCodec(LocalDateTime.class, LocalDateTime.now().truncatedTo(ChronoUnit.MICROS), "TIMESTAMPTZ");
437437

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

0 commit comments

Comments
 (0)