mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-03 20:58:11 +08:00
fix testSqoopTaskTest bug (#3024)
This commit is contained in:
parent
a65cb48191
commit
4aa1826718
@ -31,7 +31,6 @@ import org.apache.dolphinscheduler.server.zk.SpringZKServer;
|
||||
import org.apache.dolphinscheduler.service.bean.SpringApplicationContext;
|
||||
import org.apache.dolphinscheduler.service.process.ProcessService;
|
||||
import org.apache.dolphinscheduler.service.queue.TaskPriorityQueue;
|
||||
import org.apache.dolphinscheduler.service.queue.TaskPriorityQueueImpl;
|
||||
import org.apache.dolphinscheduler.service.zk.ZookeeperCachedOperator;
|
||||
import org.apache.dolphinscheduler.service.zk.ZookeeperConfig;
|
||||
import org.junit.Before;
|
||||
@ -232,9 +231,7 @@ public class TaskPriorityQueueConsumerTest {
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user