mirror of https://github.com/apache/lucene.git
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:
parent
dba60ee597
commit
a07cd4e70b
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue