mirror of https://github.com/apache/lucene.git
fix false test failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@985453 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
48b89eb8c8
commit
779bc55ea3
|
@ -533,6 +533,12 @@ public class TestIndexWriterDelete extends LuceneTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
if (!success) {
|
||||
// Must force the close else the writer can have
|
||||
// open files which cause exc in MockRAMDir.close
|
||||
modifier.rollback();
|
||||
}
|
||||
|
||||
// If the close() succeeded, make sure there are
|
||||
// no unreferenced files.
|
||||
if (success) {
|
||||
|
|
Loading…
Reference in New Issue