diff --git a/store/src/test/java/org/apache/rocketmq/store/BatchPutMessageTest.java b/store/src/test/java/org/apache/rocketmq/store/BatchPutMessageTest.java index 8de0a2cc05f57e8f0e3e455743d3875c83ae6e20..38178490be8b484d6d5d42313cb224b51fdc33b0 100644 --- a/store/src/test/java/org/apache/rocketmq/store/BatchPutMessageTest.java +++ b/store/src/test/java/org/apache/rocketmq/store/BatchPutMessageTest.java @@ -78,7 +78,7 @@ public class BatchPutMessageTest { } @Test - public void testPutMessages() { + public void testPutMessages() throws Exception { List messages = new ArrayList<>(); String topic = "batch-write-topic"; int queue = 0; @@ -111,6 +111,8 @@ public class BatchPutMessageTest { PutMessageResult putMessageResult = messageStore.putMessages(messageExtBatch); assertThat(putMessageResult.isOk()).isTrue(); + + Thread.sleep(3 * 1000); for (long i = 0; i < 10; i++) { MessageExt messageExt = messageStore.lookMessageByOffset(msgLengthArr[(int) i]);