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:
Michael McCandless 2010-08-14 10:04:00 +00:00
parent 48b89eb8c8
commit 779bc55ea3
1 changed files with 6 additions and 0 deletions

View File

@ -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) {