Browse Source

Update ShellTaskTest.java

pull/3/MERGE
小清 4 years ago committed by GitHub
parent
commit
c086b03b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/task/shell/ShellTaskTest.java

2
dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/task/shell/ShellTaskTest.java

@ -99,6 +99,8 @@ public class ShellTaskTest {
public void testComplementData() throws Exception { public void testComplementData() throws Exception {
shellTask = new ShellTask(taskExecutionContext, logger); shellTask = new ShellTask(taskExecutionContext, logger);
shellTask.init(); shellTask.init();
shellCommandExecutor.isSuccessOfYarnState(new ArrayList<>());
shellCommandExecutor.isSuccessOfYarnState(null);
PowerMockito.when(shellCommandExecutor.run(anyString())).thenReturn(commandExecuteResult); PowerMockito.when(shellCommandExecutor.run(anyString())).thenReturn(commandExecuteResult);
shellTask.handle(); shellTask.handle();
} }

Loading…
Cancel
Save