Skip to content

Commit 2581cf9

Browse files
committed
Polishing.
Avoid now timestamps to avoid formatting issues that are not relevant to assertions. [#578] Signed-off-by: Mark Paluch <[email protected]>
1 parent 4a41b7c commit 2581cf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/io/r2dbc/postgresql/codec/LocalTimeCodecUnitTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ void doCanDecodeNoType() {
9393

9494
@Test
9595
void doEncode() {
96-
LocalTime localTime = LocalTime.now();
96+
LocalTime localTime = LocalTime.parse("14:33:43.62");
9797

9898
assertThat(new LocalTimeCodec(TEST).doEncode(localTime))
9999
.hasFormat(FORMAT_TEXT)
100100
.hasType(TIME.getObjectId())
101-
.hasValue(encode(TEST, localTime.toString()));
101+
.hasValue(encode(TEST, "14:33:43.62"));
102102
}
103103

104104
@Test

0 commit comments

Comments
 (0)