Browse Source

modify LoggerServiceTest ut

pull/2/head
lilin 5 years ago
parent
commit
b3976da5b0
  1. 6
      dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/LoggerServiceTest.java

6
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/LoggerServiceTest.java

@ -88,14 +88,16 @@ public class LoggerServiceTest {
//task instance is null
try{
loggerService.getLogBytes(2);
}catch (Exception e){
}catch (RuntimeException e){
Assert.assertTrue(true);
logger.error("testGetLogBytes error: {}","task instance is null");
}
//task instance host is null
try{
loggerService.getLogBytes(1);
}catch (Exception e){
}catch (RuntimeException e){
Assert.assertTrue(true);
logger.error("testGetLogBytes error: {}","task instance host is null");
}

Loading…
Cancel
Save