clean up resources in this test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1023588 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-10-17 21:42:13 +00:00
parent 04dc476fff
commit e9b6561bbd
1 changed files with 2 additions and 4 deletions

View File

@ -263,7 +263,7 @@ public class TestRangeQuery extends SolrTestCaseJ4 {
for (String q : qs) {
// System.out.println("QUERY="+q);
SolrQueryRequest req = req("q",q,"rows","1000");
SolrQueryResponse qr = h.queryAndResponse(handler, req("q",q,"rows","1000"));
SolrQueryResponse qr = h.queryAndResponse(handler, req);
if (last != null) {
// we only test if the same docs matched since some queries will include factors like idf, etc.
sameDocs((DocSet)qr.getValues().get("response"), (DocSet)last.getValues().get("response"));
@ -280,9 +280,7 @@ public class TestRangeQuery extends SolrTestCaseJ4 {
assertEquals(a.size(), b.size());
while (i.hasNext()) {
int doc = i.nextDoc();
if (!b.exists(doc)) {
TestCase.fail("Missing doc " + doc);
}
assertTrue(b.exists(doc));
// System.out.println("MATCH! " + doc);
}
return true;