LUCENE-4364: Also close the (although already forcefully closed) in the new test - just for safety and to test double close.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1382293 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2012-09-08 12:35:36 +00:00
parent 230696f796
commit a53af85dd7
1 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,8 @@ public class TestMultiMMap extends LuceneTestCase {
}
two.close();
three.close();
// test double close of master:
one.close();
mmapDir.close();
}
@ -98,6 +100,7 @@ public class TestMultiMMap extends LuceneTestCase {
}
assertEquals(5, three.readVInt());
one.close();
three.close();
mmapDir.close();
}
@ -141,6 +144,8 @@ public class TestMultiMMap extends LuceneTestCase {
two.close();
three.close();
four.close();
// test double-close of slicer:
slicer.close();
mmapDir.close();
}