[TEST] Disable concurrency in TestTaxonomyFacetAssociations#testFloatAssociationRandom

The test relies on ordering which requires sequential execution.
This commit is contained in:
Luca Cavanna 2024-09-06 21:00:57 +02:00
parent 0b8ae220be
commit 0ec453d485
1 changed files with 4 additions and 3 deletions

View File

@ -330,8 +330,9 @@ public class TestTaxonomyFacetAssociations extends FacetTestCase {
}
public void testFloatAssociationRandom() throws Exception {
IndexSearcher searcher = newSearcher(reader);
// disabling search concurrency because validateFloats relies on ordering which requires
// sequential execution
IndexSearcher searcher = newSearcher(reader, true, true, false);
FacetsCollector fc =
searcher.search(new TermQuery(new Term("match", "yes")), new FacetsCollectorManager());
@ -617,7 +618,7 @@ public class TestTaxonomyFacetAssociations extends FacetTestCase {
float value = e.getValue();
// We can expect the floats to be exactly equal here since we're ensuring that we sum them
// in the same order when determining expected values and when computing facets. See
// LUCENE-10530:
// LUCENE-10530. This though requires sequential execution.
assertEquals(value, facets.getSpecificValue(dim, e.getKey()).floatValue(), 0f);
aggregatedValue = aggregationFunction.aggregate(aggregatedValue, value);
}