removed assertion because Jeka hates swing

This commit is contained in:
Alexey Kudravtsev
2016-01-22 14:36:43 +03:00
parent 81c015f4a3
commit adec39e232
@@ -25,7 +25,6 @@ import com.intellij.util.containers.ContainerUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.TestOnly;
import javax.swing.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@@ -186,7 +185,6 @@ public class BoundedTaskExecutor extends AbstractExecutorService {
@TestOnly
public void waitAllTasksExecuted(int timeout, @NotNull TimeUnit unit) throws ExecutionException, InterruptedException {
assert SwingUtilities.isEventDispatchThread() : Thread.currentThread(); // to make sure we are not waiting inside the pooled thread, blocking it forever
final CountDownLatch started = new CountDownLatch(myMaxTasks);
final CountDownLatch readyToFinish = new CountDownLatch(1);
// start myMaxTasks runnables which will spread to all available executor threads