@@ -257,6 +257,7 @@ public void testQueryFifoAssignment() throws Exception {
257257 public void testTransactionCheckThenCommit () {
258258 String topic = initTopicOnSampleTopicBroker (BROKER1_NAME , TopicMessageType .TRANSACTION );
259259 String group = MQRandomUtils .getRandomConsumerGroup ();
260+ initConsumerGroup (group );
260261
261262 AtomicReference <TelemetryCommand > telemetryCommandRef = new AtomicReference <>(null );
262263 StreamObserver <TelemetryCommand > requestStreamObserver = stub .telemetry (new DefaultTelemetryCommandStreamObserver () {
@@ -351,6 +352,7 @@ public void testSimpleConsumerSendAndRecvDelayMessage() throws Exception {
351352 String topic = initTopicOnSampleTopicBroker (BROKER1_NAME , TopicMessageType .DELAY );
352353 String group = MQRandomUtils .getRandomConsumerGroup ();
353354 long delayTime = TimeUnit .SECONDS .toMillis (5 );
355+ initConsumerGroup (group );
354356
355357 // init consumer offset
356358 this .sendClientSettings (stub , buildSimpleConsumerClientSettings (group )).get ();
@@ -398,6 +400,7 @@ public void testSimpleConsumerSendAndRecvDelayMessage() throws Exception {
398400 public void testSimpleConsumerSendAndRecallDelayMessage () throws Exception {
399401 String topic = initTopicOnSampleTopicBroker (BROKER1_NAME , TopicMessageType .DELAY );
400402 String group = MQRandomUtils .getRandomConsumerGroup ();
403+ initConsumerGroup (group );
401404 long delayTime = TimeUnit .SECONDS .toMillis (5 );
402405
403406 // init consumer offset
@@ -461,6 +464,7 @@ public void testSimpleConsumerSendAndRecallDelayMessage() throws Exception {
461464 public void testSimpleConsumerSendAndRecvBigMessage () throws Exception {
462465 String topic = initTopicOnSampleTopicBroker (BROKER1_NAME );
463466 String group = MQRandomUtils .getRandomConsumerGroup ();
467+ initConsumerGroup (group );
464468
465469 int bodySize = 4 * 1024 ;
466470
@@ -483,6 +487,7 @@ public void testSimpleConsumerSendAndRecvBigMessage() throws Exception {
483487 public void testSimpleConsumerSendAndRecv () throws Exception {
484488 String topic = initTopicOnSampleTopicBroker (BROKER1_NAME );
485489 String group = MQRandomUtils .getRandomConsumerGroup ();
490+ initConsumerGroup (group );
486491
487492 // init consumer offset
488493 this .sendClientSettings (stub , buildSimpleConsumerClientSettings (group )).get ();
@@ -539,6 +544,7 @@ public void testSimpleConsumerSendAndRecv() throws Exception {
539544 public void testSimpleConsumerToDLQ () throws Exception {
540545 String topic = initTopicOnSampleTopicBroker (BROKER1_NAME );
541546 String group = MQRandomUtils .getRandomConsumerGroup ();
547+ initConsumerGroup (group );
542548 int maxDeliveryAttempts = 2 ;
543549
544550 SubscriptionGroupConfig groupConfig = brokerController1 .getSubscriptionGroupManager ().findSubscriptionGroupConfig (group );
0 commit comments