From 85e935d78d58c5a74da973a4ab52f58ff4da53e9 Mon Sep 17 00:00:00 2001 From: keranbingaa Date: Tue, 15 Oct 2019 19:47:42 +0800 Subject: [PATCH] modify unit test --- .../rocketmq/common/message/MessageClientIDSetterTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 987f1032..e23a80be 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); -- GitLab