mirror of
https://github.com/apache/rocketmq.git
synced 2026-08-30 18:10:44 +08:00
Fix error tests, producer should wait a while for consumer to be ready
This commit is contained in:
+2
-2
@@ -50,13 +50,13 @@ public class BroadCastNormalMsgNotRecvIT extends BaseBroadCastIT {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNotConsumeAfterConsume() {
|
||||
public void testNotConsumeAfterConsume() throws Exception {
|
||||
int msgSize = 16;
|
||||
|
||||
String group = initConsumerGroup();
|
||||
RMQBroadCastConsumer consumer1 = getBroadCastConsumer(nsAddr, group, topic, "*",
|
||||
new RMQNormalListner(group + "_1"));
|
||||
|
||||
Thread.sleep(3000);
|
||||
producer.send(msgSize);
|
||||
Assert.assertEquals("Not all sent succeeded", msgSize, producer.getAllUndupMsgBody().size());
|
||||
|
||||
|
||||
+1
@@ -80,6 +80,7 @@ public class AsyncSendWithMessageQueueSelectorIT extends BaseConf {
|
||||
|
||||
producer.clearMsg();
|
||||
consumer.clearMsg();
|
||||
producer.getSuccessSendResult().clear();
|
||||
|
||||
producer.asyncSend(msgSize, new MessageQueueSelector() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user