mirror of https://github.com/apache/lucene.git
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:
parent
230696f796
commit
a53af85dd7
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue