From eecf9924329408a85f18c424ddf4cf9a4e87c4ef Mon Sep 17 00:00:00 2001 From: qiaozhanwei Date: Fri, 10 Apr 2020 10:10:48 +0800 Subject: [PATCH] update UT in pom.xml --- .../api/service/ProcessInstanceServiceTest.java | 4 ++-- pom.xml | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessInstanceServiceTest.java b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessInstanceServiceTest.java index 959dca21bf..0cbdb806ca 100644 --- a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessInstanceServiceTest.java +++ b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessInstanceServiceTest.java @@ -265,7 +265,7 @@ public class ProcessInstanceServiceTest { //task not sub process TaskInstance taskInstance = getTaskInstance(); - taskInstance.setTaskType(TaskType.HTTP.getDescp()); + taskInstance.setTaskType(TaskType.HTTP.toString()); taskInstance.setProcessInstanceId(1); when(processService.findTaskInstanceById(1)).thenReturn(taskInstance); Map notSubprocessRes = processInstanceService.querySubProcessInstanceByTaskId(loginUser, projectName, 1); @@ -273,7 +273,7 @@ public class ProcessInstanceServiceTest { //sub process not exist TaskInstance subTask = getTaskInstance(); - subTask.setTaskType(TaskType.SUB_PROCESS.getDescp()); + subTask.setTaskType(TaskType.SUB_PROCESS.toString()); subTask.setProcessInstanceId(1); when(processService.findTaskInstanceById(subTask.getId())).thenReturn(subTask); when(processService.findSubProcessInstance(subTask.getProcessInstanceId(), subTask.getId())).thenReturn(null); diff --git a/pom.xml b/pom.xml index 4767a32c54..86d0b8ba3e 100644 --- a/pom.xml +++ b/pom.xml @@ -740,9 +740,6 @@ **/service/zk/DefaultEnsembleProviderTest.java **/alert/utils/MailUtilsTest.java **/dao/AlertDaoTest.java - - **/server/master/dispatch/host/RoundRobinHostManagerTest.java - **/server/master/dispatch/ExecutorDispatcherTest.java