hdchen commented on a change in pull request #928: [RIP-10] 
Fix-ScheduleMessageServiceTest
URL: https://github.com/apache/rocketmq/pull/928#discussion_r260585548
 
 

 ##########
 File path: 
store/src/test/java/org/apache/rocketmq/store/schedule/ScheduleMessageServiceTest.java
 ##########
 @@ -111,14 +111,17 @@ public void init() throws Exception {
 
 
     @Test
-    public void deliverDelayedMessageTimerTaskTest() throws 
InterruptedException {
+    public void deliverDelayedMessageTimerTaskTest() throws Exception {
         MessageExtBrokerInner msg = buildMessage();
         int realQueueId = msg.getQueueId();
         // set delayLevel,and send delay message
         msg.setDelayTimeLevel(delayLevel);
         PutMessageResult result = messageStore.putMessage(msg);
         assertThat(result.isOk()).isTrue();
 
+        StoreTestUtil.waitCommitLogReput(messageStore);
+        StoreTestUtil.flushConsumeQueue(messageStore);
 
 Review comment:
   StoreTestUtil.flushConsumeQueue(messageStore)  is   not necessary

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to