don't use the slowwrapper for all of these tests... just the ones that require it

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040376 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-11-30 01:06:12 +00:00
parent ef914b348a
commit 937a9981d1
2 changed files with 8 additions and 8 deletions

View File

@ -79,7 +79,7 @@ public class TestBasics extends LuceneTestCase {
doc.add(newField("field", English.intToEnglish(i), Field.Store.YES, Field.Index.ANALYZED));
writer.addDocument(doc);
}
reader = new SlowMultiReaderWrapper(writer.getReader());
reader = writer.getReader();
searcher = new IndexSearcher(reader);
writer.close();
}
@ -524,8 +524,8 @@ public class TestBasics extends LuceneTestCase {
public void testSpansSkipTo() throws Exception {
SpanTermQuery t1 = new SpanTermQuery(new Term("field", "seventy"));
SpanTermQuery t2 = new SpanTermQuery(new Term("field", "seventy"));
Spans s1 = t1.getSpans(searcher.getIndexReader());
Spans s2 = t2.getSpans(searcher.getIndexReader());
Spans s1 = t1.getSpans(new SlowMultiReaderWrapper(searcher.getIndexReader()));
Spans s2 = t2.getSpans(new SlowMultiReaderWrapper(searcher.getIndexReader()));
assertTrue(s1.next());
assertTrue(s2.next());

View File

@ -110,7 +110,7 @@ public class TestFieldMaskingSpanQuery extends LuceneTestCase {
field("gender", "male"),
field("first", "bubba"),
field("last", "jones") }));
reader = new SlowMultiReaderWrapper(writer.getReader());
reader = writer.getReader();
writer.close();
searcher = new IndexSearcher(reader);
}
@ -256,7 +256,7 @@ public class TestFieldMaskingSpanQuery extends LuceneTestCase {
{ q1, new FieldMaskingSpanQuery(q2, "gender")});
check(q, new int[] { 0, 1, 2, 3, 4 });
Spans span = q.getSpans(searcher.getIndexReader());
Spans span = q.getSpans(new SlowMultiReaderWrapper(searcher.getIndexReader()));
assertEquals(true, span.next());
assertEquals(s(0,0,1), s(span));
@ -297,8 +297,8 @@ public class TestFieldMaskingSpanQuery extends LuceneTestCase {
check(qA, new int[] { 0, 1, 2, 4 });
check(qB, new int[] { 0, 1, 2, 4 });
Spans spanA = qA.getSpans(searcher.getIndexReader());
Spans spanB = qB.getSpans(searcher.getIndexReader());
Spans spanA = qA.getSpans(new SlowMultiReaderWrapper(searcher.getIndexReader()));
Spans spanB = qB.getSpans(new SlowMultiReaderWrapper(searcher.getIndexReader()));
while (spanA.next()) {
assertTrue("spanB not still going", spanB.next());
@ -319,7 +319,7 @@ public class TestFieldMaskingSpanQuery extends LuceneTestCase {
new FieldMaskingSpanQuery(qB, "id") }, -1, false );
check(q, new int[] { 0, 1, 2, 3 });
Spans span = q.getSpans(searcher.getIndexReader());
Spans span = q.getSpans(new SlowMultiReaderWrapper(searcher.getIndexReader()));
assertEquals(true, span.next());
assertEquals(s(0,0,1), s(span));