@Test
public void test_Restart() {
normalProcess();
// 发送restart信号
TerminEventData rollback = new TerminEventData();
rollback.setPipelineId(pipelineId);
rollback.setType(TerminType.RESTART);
terminEvent.single(rollback);
sleep(4000L);
PermitMonitor monitor = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);
want.bool(monitor.getChannelPermit(true).isStart()).is(true);
sleep(4000L);
// 发送shutdown信号
TerminEventData shutdown = new TerminEventData();
shutdown.setPipelineId(pipelineId);
shutdown.setType(TerminType.SHUTDOWN);
terminEvent.single(shutdown);
want.bool(monitor.getChannelPermit(true).isStop()).is(true);
// 删除对应的错误节点