|
|
@ -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()); |
|
|
|