tests: fix resource leaks

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1022802 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-10-15 01:09:34 +00:00
parent dba60ee597
commit a07cd4e70b
1 changed files with 2 additions and 0 deletions

View File

@ -566,6 +566,7 @@ public class BasicFunctionalityTest extends SolrTestCaseJ4 {
// ensure field is not lazy // ensure field is not lazy
assertTrue( d.getFieldable("test_hlt") instanceof Field ); assertTrue( d.getFieldable("test_hlt") instanceof Field );
assertTrue( d.getFieldable("title") instanceof Field ); assertTrue( d.getFieldable("title") instanceof Field );
req.close();
} }
@Test @Test
@ -588,6 +589,7 @@ public class BasicFunctionalityTest extends SolrTestCaseJ4 {
// ensure field is lazy // ensure field is lazy
assertTrue( !( d.getFieldable("test_hlt") instanceof Field ) ); assertTrue( !( d.getFieldable("test_hlt") instanceof Field ) );
assertTrue( d.getFieldable("title") instanceof Field ); assertTrue( d.getFieldable("title") instanceof Field );
req.close();
} }