Test failure: FacetTest.testFacetsNA()
The failure happened when the test ran after ResultSizeTest. That test temporarily disabled globalLucene index which was affecting FacetTest#testFacetsNA test. Now, we'd reindex after that temporary disabled globalLucene is reset.
@@ -45,12 +45,15 @@ public class ResultSizeTest extends AbstractQueryTest {
luceneV1.setProperty(LuceneIndexConstants.COMPAT_MODE, IndexFormatVersion.V1.getVersion());
session.save();
+ try {
doTestResultSize(true);
-
+ } finally {
luceneV1.remove();
luceneGlobal.setProperty("type", "lucene");
+ luceneGlobal.setProperty("reindex", true);
session.save();
}
+ }
private void doTestResultSize(boolean aggregateAtQueryTime) throws RepositoryException {
createData();
