dailidong commented on a change in pull request #3024:
URL:
https://github.com/apache/incubator-dolphinscheduler/pull/3024#discussion_r442768102
##########
File path:
dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/master/consumer/TaskPriorityQueueConsumerTest.java
##########
@@ -232,9 +231,7 @@ public void testSqoopTask() throws Exception {
dataSource.setConnectionParams("{\"address\":\"jdbc:mysql://192.168.221.185:3306\",\"database\":\"dolphinscheduler_qiaozhanwei\",\"jdbcUrl\":\"jdbc:mysql://192.168.221.185:3306/dolphinscheduler_qiaozhanwei\",\"user\":\"root\",\"password\":\"root@123\"}");
dataSource.setCreateTime(new Date());
dataSource.setUpdateTime(new Date());
-
-
Mockito.when(processService.findDataSourceById(1)).thenReturn(dataSource);
-
+
Mockito.doReturn(dataSource).when(processService).findDataSourceById(1);
Thread.sleep(10000);
Review comment:
why sleep 10000?
----------------------------------------------------------------
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:
[email protected]