提交 b3976da5 编写于 作者: 一子三木's avatar 一子三木

modify LoggerServiceTest ut

上级 e00ef491
...@@ -88,14 +88,16 @@ public class LoggerServiceTest { ...@@ -88,14 +88,16 @@ public class LoggerServiceTest {
//task instance is null //task instance is null
try{ try{
loggerService.getLogBytes(2); loggerService.getLogBytes(2);
}catch (Exception e){ }catch (RuntimeException e){
Assert.assertTrue(true);
logger.error("testGetLogBytes error: {}","task instance is null"); logger.error("testGetLogBytes error: {}","task instance is null");
} }
//task instance host is null //task instance host is null
try{ try{
loggerService.getLogBytes(1); loggerService.getLogBytes(1);
}catch (Exception e){ }catch (RuntimeException e){
Assert.assertTrue(true);
logger.error("testGetLogBytes error: {}","task instance host is null"); logger.error("testGetLogBytes error: {}","task instance host is null");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册