mirror of https://github.com/apache/lucene.git
add comment to clarify confusing test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1135764 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d0e0dc3f6e
commit
6e2a28b6f6
|
@ -1375,6 +1375,11 @@ public class TestIndexWriter extends LuceneTestCase {
|
|||
IndexReader r2 = r.reopen();
|
||||
assertTrue(r != r2);
|
||||
files = Arrays.asList(dir.listAll());
|
||||
|
||||
// NOTE: here we rely on "Windows" behavior, ie, even
|
||||
// though IW wanted to delete _0.cfs since it was
|
||||
// optimized away, because we have a reader open
|
||||
// against this file, it should still be here:
|
||||
assertTrue(files.contains("_0.cfs"));
|
||||
// optimize created this
|
||||
//assertTrue(files.contains("_2.cfs"));
|
||||
|
|
Loading…
Reference in New Issue