From fe1d16ee68669769b325db4d342c42df5ac5f0e2 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Sat, 23 Oct 2010 12:21:21 +0000 Subject: [PATCH] tests: close writer git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1026610 13f79535-47bb-0310-9956-ffa450edef68 --- .../solr/core/TestLegacyMergeSchedulerPolicyConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/solr/src/test/org/apache/solr/core/TestLegacyMergeSchedulerPolicyConfig.java b/solr/src/test/org/apache/solr/core/TestLegacyMergeSchedulerPolicyConfig.java index c454b8514b4..59447c87250 100644 --- a/solr/src/test/org/apache/solr/core/TestLegacyMergeSchedulerPolicyConfig.java +++ b/solr/src/test/org/apache/solr/core/TestLegacyMergeSchedulerPolicyConfig.java @@ -18,9 +18,11 @@ public class TestLegacyMergeSchedulerPolicyConfig extends SolrTestCaseJ4 { @Test public void testLegacy() throws Exception { - IndexWriter writer = new ExposeWriterHandler().getWriter(); + ExposeWriterHandler duh = new ExposeWriterHandler(); + IndexWriter writer = duh.getWriter(); assertTrue(writer.getMergePolicy().getClass().getName().equals(LogDocMergePolicy.class.getName())); assertTrue(writer.getMergeScheduler().getClass().getName().equals(SerialMergeScheduler.class.getName())); + duh.close(); } class ExposeWriterHandler extends DirectUpdateHandler2 {