lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romseyg...@apache.org
Subject svn commit: r1642840 - /lucene/dev/branches/lucene2878/lucene/test-framework/src/java/org/apache/lucene/util/TestUtil.java
Date Tue, 02 Dec 2014 10:50:05 GMT
Author: romseygeek
Date: Tue Dec  2 10:50:04 2014
New Revision: 1642840

URL: http://svn.apache.org/r1642840
Log:
Fix test bug

Modified:
    lucene/dev/branches/lucene2878/lucene/test-framework/src/java/org/apache/lucene/util/TestUtil.java

Modified: lucene/dev/branches/lucene2878/lucene/test-framework/src/java/org/apache/lucene/util/TestUtil.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene2878/lucene/test-framework/src/java/org/apache/lucene/util/TestUtil.java?rev=1642840&r1=1642839&r2=1642840&view=diff
==============================================================================
--- lucene/dev/branches/lucene2878/lucene/test-framework/src/java/org/apache/lucene/util/TestUtil.java
(original)
+++ lucene/dev/branches/lucene2878/lucene/test-framework/src/java/org/apache/lucene/util/TestUtil.java
Tue Dec  2 10:50:04 2014
@@ -17,8 +17,6 @@ package org.apache.lucene.util;
  * limitations under the License.
  */
 
-import com.carrotsearch.randomizedtesting.generators.RandomInts;
-import com.carrotsearch.randomizedtesting.generators.RandomPicks;
 import java.io.BufferedInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
@@ -45,6 +43,8 @@ import java.util.regex.PatternSyntaxExce
 import java.util.zip.ZipEntry;
 import java.util.zip.ZipInputStream;
 
+import com.carrotsearch.randomizedtesting.generators.RandomInts;
+import com.carrotsearch.randomizedtesting.generators.RandomPicks;
 import org.apache.lucene.codecs.Codec;
 import org.apache.lucene.codecs.DocValuesFormat;
 import org.apache.lucene.codecs.PostingsFormat;
@@ -958,7 +958,7 @@ public final class TestUtil {
       if (random.nextBoolean()) {
         final int posFlags;
         switch (random.nextInt(4)) {
-          case 0: posFlags = DocsEnum.FLAG_NONE; break;
+          case 0: posFlags = DocsEnum.FLAG_POSITIONS; break;
           case 1: posFlags = DocsEnum.FLAG_OFFSETS; break;
           case 2: posFlags = DocsEnum.FLAG_PAYLOADS; break;
           default: posFlags = DocsEnum.FLAG_OFFSETS | DocsEnum.FLAG_PAYLOADS; break;



Mime
View raw message