lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1237374 - /lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestParallelTermEnum.java
Date Sun, 29 Jan 2012 17:31:48 GMT
Author: rmuir
Date: Sun Jan 29 17:31:47 2012
New Revision: 1237374

URL: http://svn.apache.org/viewvc?rev=1237374&view=rev
Log:
LUCENE-2858: fix test

Modified:
    lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestParallelTermEnum.java

Modified: lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestParallelTermEnum.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestParallelTermEnum.java?rev=1237374&r1=1237373&r2=1237374&view=diff
==============================================================================
--- lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestParallelTermEnum.java
(original)
+++ lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestParallelTermEnum.java
Sun Jan 29 17:31:47 2012
@@ -28,8 +28,8 @@ import org.apache.lucene.util.LuceneTest
 import org.apache.lucene.util._TestUtil;
 
 public class TestParallelTermEnum extends LuceneTestCase {
-    private IndexReader ir1;
-    private IndexReader ir2;
+    private DirectoryReader ir1;
+    private DirectoryReader ir2;
     private Directory rd1;
     private Directory rd2;
     
@@ -73,8 +73,8 @@ public class TestParallelTermEnum extend
 
     public void test1() throws IOException {
         ParallelReader pr = new ParallelReader();
-        pr.add(ir1);
-        pr.add(ir2);
+        pr.add(new SlowCompositeReaderWrapper(ir1));
+        pr.add(new SlowCompositeReaderWrapper(ir2));
 
         Bits liveDocs = pr.getLiveDocs();
 



Mime
View raw message