Skip to content

Commit

Permalink
[INLONG-9461][Manager] Failure of GroupTaskListenerFactoryTest
Browse files Browse the repository at this point in the history
  • Loading branch information
fuweng11 authored and vernedeng committed Dec 12, 2023
1 parent 7426680 commit bfe12fe
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,13 @@ public class GroupTaskListenerFactoryTest extends ServiceBaseTest {
public void testGetQueueOperateListener() {
GroupResourceProcessForm processForm = new GroupResourceProcessForm();
InlongPulsarInfo pulsarInfo = new InlongPulsarInfo();
// check pulsar listener
pulsarInfo.setMqType(MQType.PULSAR);
processForm.setGroupInfo(pulsarInfo);
WorkflowContext context = new WorkflowContext();
context.setProcessForm(processForm);
List<QueueOperateListener> queueOperateListeners = groupTaskListenerFactory.getQueueResourceListener(context);
if (queueOperateListeners.size() == 0) {
return;
}
Assertions.assertEquals(1, queueOperateListeners.size());

// check tubemq listener
InlongTubeMQInfo tubeInfo = new InlongTubeMQInfo();
tubeInfo.setMqType(MQType.TUBEMQ);
queueOperateListeners = groupTaskListenerFactory.getQueueResourceListener(context);
Assertions.assertEquals(2, queueOperateListeners.size());
}

}

0 comments on commit bfe12fe

Please sign in to comment.