mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
completion in tests: don't fail when run without -ea
This commit is contained in:
+3
-1
@@ -515,7 +515,9 @@ public class CompletionProgressIndicator extends ProgressIndicatorBase implement
|
||||
|
||||
boolean blockingWaitForFinish(int timeoutMs) {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode() && !CompletionAutoPopupHandler.ourTestingAutopopup) {
|
||||
assert myFinishSemaphore.waitFor(100 * 1000) : "Too long completion";
|
||||
if (!myFinishSemaphore.waitFor(100 * 1000)) {
|
||||
throw new AssertionError("Too long completion");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (myFreezeSemaphore.waitFor(timeoutMs)) {
|
||||
|
||||
Reference in New Issue
Block a user