Skip to content

Commit

Permalink
Try to make CI test more stable (#4616)
Browse files Browse the repository at this point in the history
  • Loading branch information
RongtongJin authored Jul 18, 2022
1 parent 0ba53e5 commit 3ee603a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void testCommandsWithBrokers() throws Exception {
RMQNormalProducer producer = getProducer(nsAddr, topic);
RMQNormalConsumer consumer = getConsumer(nsAddr, topic, "*", new RMQNormalListener());
int queueNum = 10;
int msgEachQueue = 100;
int msgEachQueue = 10;
{
Set<String> brokers = ImmutableSet.of(broker1Name);
MQAdminTestUtils.createStaticTopicWithCommand(topic, queueNum, brokers, null, nsAddr);
Expand Down Expand Up @@ -207,7 +207,7 @@ public int compare(MessageExt o1, MessageExt o2) {
}

private void consumeMessagesAndCheck(RMQNormalProducer producer, RMQNormalConsumer consumer, String topic, int queueNum, int msgEachQueue, int startGen, int genNum) {
consumer.getListener().waitForMessageConsume(producer.getAllMsgBody(), 30000);
consumer.getListener().waitForMessageConsume(producer.getAllMsgBody(), 60000);
// System.out.println("produce:" + producer.getAllMsgBody().size());
// System.out.println("consume:" + consumer.getListener().getAllMsgBody().size());

Expand Down Expand Up @@ -243,7 +243,7 @@ public void testCreateProduceConsumeStaticTopic() throws Exception {
RMQNormalConsumer consumer = getConsumer(nsAddr, topic, "*", new RMQNormalListener());

int queueNum = 10;
int msgEachQueue = 100;
int msgEachQueue = 10;
//create static topic
Map<String, TopicConfigAndQueueMapping> localBrokerConfigMap = MQAdminTestUtils.createStaticTopic(topic, queueNum, getBrokers(), defaultMQAdminExt);
//check the static topic config
Expand Down Expand Up @@ -275,7 +275,7 @@ public void testRemappingProduceConsumeStaticTopic() throws Exception {
RMQNormalConsumer consumer = getConsumer(nsAddr, topic, "*", new RMQNormalListener());

int queueNum = 1;
int msgEachQueue = 100;
int msgEachQueue = 10;
//create send consume
{
Set<String> targetBrokers = ImmutableSet.of(broker1Name);
Expand Down Expand Up @@ -346,7 +346,7 @@ public void testDoubleReadCheckConsumerOffset() throws Exception {
long start = System.currentTimeMillis();

int queueNum = 10;
int msgEachQueue = 100;
int msgEachQueue = 10;
//create static topic
{
Set<String> targetBrokers = ImmutableSet.of(broker1Name);
Expand Down

0 comments on commit 3ee603a

Please sign in to comment.