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

@ -130,10 +130,12 @@ public class TestConfig extends SolrTestCaseJ4 {
return writer; return writer;
} }
} }
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