fix TestIW.testThreadInterruptDeadlock to properly close (abort) its writer

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@980369 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-07-29 09:08:11 +00:00
parent b3bb09bb8a
commit 04cdd6c249
1 changed files with 6 additions and 0 deletions

View File

@ -4387,6 +4387,12 @@ public class TestIndexWriter extends LuceneTestCase {
} }
} }
try {
w.rollback();
} catch (IOException ioe) {
throw new RuntimeException(ioe);
}
if (!failed) { if (!failed) {
try { try {
_TestUtil.checkIndex(dir); _TestUtil.checkIndex(dir);