From 2d413e01b1fe60e610d270e8294f4717d26e168d Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sun, 19 Feb 2012 22:14:03 +0000 Subject: [PATCH] LUCENE-3800: For now disable wrapping by newSearcher for this test git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1291071 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/lucene/index/TestReaderClosed.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestReaderClosed.java b/lucene/core/src/test/org/apache/lucene/index/TestReaderClosed.java index db462d570e1..7c06a466feb 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestReaderClosed.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestReaderClosed.java @@ -54,7 +54,8 @@ public class TestReaderClosed extends LuceneTestCase { writer.addDocument(doc); } reader = writer.getReader(); - searcher = newSearcher(reader); + searcher = newSearcher(reader, /* TODO: change that back to true and add better test, + so wrapped readers are explicitely checked, see LUCENE-3800: */ false); writer.close(); }