do not force rebuild in tests because of cyclic dependencies problem

This commit is contained in:
Eugene Zhuravlev
2011-11-04 12:47:27 +01:00
parent bf41e38c85
commit bc99e8934e
@@ -83,7 +83,12 @@ public class StubIndexImpl extends StubIndex implements ApplicationComponent, Pe
needRebuild |= registerIndexer(extension, forceClean);
}
if (needRebuild) {
forceRebuild(new Throwable());
if (ApplicationManager.getApplication().isUnitTestMode()) {
requestRebuild();
}
else {
forceRebuild(new Throwable());
}
}
dropUnregisteredIndices();
}