mirror of https://github.com/apache/lucene.git
re-enable test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1372071 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b3174c271e
commit
d1447b47f3
|
@ -69,16 +69,12 @@ public class TestReaderClosed extends LuceneTestCase {
|
|||
}
|
||||
|
||||
// LUCENE-3800
|
||||
@BadApple
|
||||
@AwaitsFix(bugUrl = "LUCENE-4280")
|
||||
public void testReaderChaining() throws Exception {
|
||||
assertTrue(reader.getRefCount() > 0);
|
||||
IndexReader wrappedReader = SlowCompositeReaderWrapper.wrap(reader);
|
||||
wrappedReader = new ParallelAtomicReader((AtomicReader) wrappedReader);
|
||||
|
||||
// TODO: LUCENE-4280; this fails:
|
||||
IndexSearcher searcher = newSearcher(wrappedReader);
|
||||
// but with this it works: IndexSearcher searcher = new IndexSearcher(wrappedReader);
|
||||
|
||||
TermRangeQuery query = TermRangeQuery.newStringRange("field", "a", "z", true, true);
|
||||
searcher.search(query, 5);
|
||||
|
@ -90,6 +86,9 @@ public class TestReaderClosed extends LuceneTestCase {
|
|||
"this IndexReader cannot be used anymore as one of its child readers was closed",
|
||||
ace.getMessage()
|
||||
);
|
||||
} finally {
|
||||
// shutdown executor: in case of wrap-wrap-wrapping
|
||||
searcher.getIndexReader().close();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue