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:
Michael McCandless 2011-06-14 19:43:04 +00:00
parent d0e0dc3f6e
commit 6e2a28b6f6
1 changed files with 5 additions and 0 deletions

View File

@ -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"));