Skip to content

Commit e7ce896

Browse files
committed
Added extra date time parsing test
1 parent d352b5a commit e7ce896

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/com/mongodb/kafka/connect/util/FlexibleDateTimeParserTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ void testDefaultDateStrings() {
6161
() ->
6262
assertEquals(
6363
3600001, DEFAULT_DATE_TIME_PARSER.toEpochMilli("1970-01-01T01:00:00.001Z")),
64+
() -> assertEquals(3600000, DEFAULT_DATE_TIME_PARSER.toEpochMilli("1970-01-01T01:00:00Z")),
6465
() ->
6566
assertEquals(3600001, DEFAULT_DATE_TIME_PARSER.toEpochMilli("1970-01-0101:00:00.001")),
6667
() -> assertEquals(3600000, DEFAULT_DATE_TIME_PARSER.toEpochMilli("1970-01-0101:00:00")),

0 commit comments

Comments
 (0)