Apache Lucene open-source search software
Fix test failure that was due to rounding errors.
Adrien Grand52d63dfefb74
diff --git a/lucene/core/src/test/org/apache/lucene/search/TestBooleanRewrites.java b/lucene/core/src/test/org/apache/lucene/search/TestBooleanRewrites.javaindex 7f3f07b143e..c0df2f6bbfc 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestBooleanRewrites.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestBooleanRewrites.java@@ -295,7 +295,7 @@ public class TestBooleanRewrites extends LuceneTestCase {private Query randomBooleanQuery() {if (random().nextInt(10) == 0) {- return new BoostQuery(randomBooleanQuery(), random().nextFloat());+ return new BoostQuery(randomBooleanQuery(), TestUtil.nextInt(random(), 1, 10));}final int numClauses = random().nextInt(5);BooleanQuery.Builder b = new BooleanQuery.Builder();