Browse Source

test

pull/3/MERGE
CalvinKirs 4 years ago
parent
commit
2a9e789f68
  1. 6
      dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/master/processor/queue/TaskResponseServiceTest.java

6
dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/master/processor/queue/TaskResponseServiceTest.java

@ -93,10 +93,8 @@ public class TaskResponseServiceTest {
long maxWaitTime = 3 * 60 * 1000; long maxWaitTime = 3 * 60 * 1000;
while (System.currentTimeMillis() - maxWaitTime - startTime < 0) { while (taskResponseService.getEventQueue().size() != 0) {
if (taskResponseService.getEventQueue().size() == 0) {
return;
}
} }
Assert.assertEquals(0, taskResponseService.getEventQueue().size()); Assert.assertEquals(0, taskResponseService.getEventQueue().size());

Loading…
Cancel
Save