mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
removed assertion because Jeka hates swing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user