diff --git a/common/src/test/java/org/apache/rocketmq/common/message/MessageClientIDSetterTest.java b/common/src/test/java/org/apache/rocketmq/common/message/MessageClientIDSetterTest.java index 987f1032fe7e6a1c3fa67bdf0119766a3097336f..e23a80be078057d4a29b78d448a8feb93f944641 100644 --- a/common/src/test/java/org/apache/rocketmq/common/message/MessageClientIDSetterTest.java +++ b/common/src/test/java/org/apache/rocketmq/common/message/MessageClientIDSetterTest.java @@ -39,7 +39,7 @@ public class MessageClientIDSetterTest { String ipv4HostMsgId = "C0A803CA00002A9F0000000000031367"; String ipv6HostMsgId = "24084004018081003FAA1DDE2B3F898A00002A9F0000000000000CA0"; Calendar cal = Calendar.getInstance(); - cal.set(2019, Calendar.AUGUST, 1); + cal.set(2019, Calendar.OCTOBER, 1); Date date = cal.getTime(); assertThat(MessageClientIDSetter.getNearlyTimeFromID(ipv4HostMsgId)).isCloseTo(date, 24*60*60*1000); assertThat(MessageClientIDSetter.getNearlyTimeFromID(ipv6HostMsgId)).isCloseTo(date, 24*60*60*1000);