diff --git a/src/test/org/apache/lucene/search/TestBoolean2.java b/src/test/org/apache/lucene/search/TestBoolean2.java index ac08b3f6a9e..2d564f67131 100644 --- a/src/test/org/apache/lucene/search/TestBoolean2.java +++ b/src/test/org/apache/lucene/search/TestBoolean2.java @@ -194,7 +194,7 @@ public class TestBoolean2 extends TestCase { // Random rnd is passed in so that the exact same random query may be created // more than once. public static BooleanQuery randBoolQuery(Random rnd, int level, String field, String[] vals, Callback cb) { - BooleanQuery current = new BooleanQuery(); + BooleanQuery current = new BooleanQuery(rnd.nextInt()<0); for (int i=0; i0) {