qiaozhanwei commented on issue #1616: AlertMappert UT modify #1465 URL: https://github.com/apache/incubator-dolphinscheduler/pull/1616#issuecomment-569412490 @Test public void testUpdate(){ Alert expectedAlert = createAlert(); expectedAlert.setAlertStatus(AlertStatus.EXECUTION_FAILURE); expectedAlert.setLog("error"); expectedAlert.setUpdateTime(DateUtils.getCurrentDate()); alertMapper.updateById(expectedAlert); Alert actualAlert = alertMapper.selectById(expectedAlert.getId()); assertEquals(expectedAlert, actualAlert); } for example above , It's not enough to just judge by id
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services