mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Do not ignore PCE while running tasks with "ProgressManagerQueue" in tests
Probably this'll help to fix "CommittedChangesCacheTest" blinking
This commit is contained in:
@@ -80,18 +80,9 @@ public class ProgressManagerQueue {
|
||||
}
|
||||
}
|
||||
|
||||
private static void runStuff(final Runnable stuff) {
|
||||
try {
|
||||
stuff.run();
|
||||
}
|
||||
catch (ProcessCanceledException e) {
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
public void run(@NotNull final Runnable stuff) {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
runStuff(stuff);
|
||||
stuff.run();
|
||||
return;
|
||||
}
|
||||
synchronized (myLock) {
|
||||
@@ -122,7 +113,11 @@ public class ProgressManagerQueue {
|
||||
}
|
||||
if (stuff != null) {
|
||||
// each task is executed only once, once it has been taken from the queue..
|
||||
runStuff(stuff);
|
||||
try {
|
||||
stuff.run();
|
||||
}
|
||||
catch (ProcessCanceledException ignored) {
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Throwable t) {
|
||||
|
||||
Reference in New Issue
Block a user