fix tests: when queueing dumb mode task after refresh finish keep old behaviour if running in test mode

This commit is contained in:
Eugene Zhuravlev
2010-04-14 13:55:05 +04:00
parent 50bc3a22d5
commit 60da2faeaa
@@ -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);