We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f35c579 commit f511bd7Copy full SHA for f511bd7
src/test/java/io/r2dbc/postgresql/AbstractTemporalCodecIntegrationTests.java
@@ -27,6 +27,7 @@
27
import java.time.OffsetDateTime;
28
import java.time.OffsetTime;
29
import java.time.ZoneOffset;
30
+import java.time.temporal.ChronoUnit;
31
import java.util.TimeZone;
32
33
import static org.assertj.core.api.Assertions.assertThat;
@@ -201,7 +202,7 @@ void shouldConsiderInstantMinMax() {
201
202
insert(Instant.parse("0000-12-31T01:01:00Z"));
203
expectValue(Instant.parse("0000-12-31T01:01:00Z"));
204
- Instant now = Instant.now();
205
+ Instant now = Instant.now().truncatedTo(ChronoUnit.MICROS);
206
insert(now);
207
expectValue(now);
208
}
0 commit comments