tests: close writer

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1026606 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-10-23 12:11:19 +00:00
parent c74daf63d1
commit ac71187c4e
1 changed files with 4 additions and 2 deletions

View File

@ -131,9 +131,11 @@ public class TestConfig extends SolrTestCaseJ4 {
} }
} }
IndexWriter writer = new ExposeWriterHandler().getWriter(); ExposeWriterHandler duh = new ExposeWriterHandler();
IndexWriter writer = duh.getWriter();
int interval = writer.getTermIndexInterval(); int interval = writer.getTermIndexInterval();
assertEquals(256, interval); assertEquals(256, interval);
duh.close();
} }
@Test @Test