mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix tests: when queueing dumb mode task after refresh finish keep old behaviour if running in test mode
This commit is contained in:
@@ -605,6 +605,11 @@ public class ProjectRootManagerImpl extends ProjectRootManagerEx implements Proj
|
||||
}
|
||||
|
||||
private void doUpdateOnRefresh() {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
if (!myStartupActivityPerformed) {
|
||||
return; // in test mode suppress addition to a queue unless project is properly initialized
|
||||
}
|
||||
}
|
||||
myStartupManager.runWhenProjectIsInitialized(new DumbAwareRunnable() {
|
||||
public void run() {
|
||||
DumbServiceImpl.getInstance(myProject).queueCacheUpdate(myRefreshCacheUpdaters);
|
||||
|
||||
Reference in New Issue
Block a user