mirror of https://github.com/apache/lucene.git
SOLR-1430 -- AbstractSolrTestCase ignores arguments for commit and optimize commands
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@815247 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
77126a3782
commit
91e071d18e
|
@ -207,13 +207,13 @@ public abstract class AbstractSolrTestCase extends TestCase {
|
|||
* @see TestHarness#optimize
|
||||
*/
|
||||
public String optimize(String... args) {
|
||||
return h.optimize();
|
||||
return h.optimize(args);
|
||||
}
|
||||
/**
|
||||
* @see TestHarness#commit
|
||||
*/
|
||||
public String commit(String... args) {
|
||||
return h.commit();
|
||||
return h.commit(args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -489,7 +489,7 @@ public class TestHarness {
|
|||
if (null == args || 0 == args.length) {
|
||||
XML.writeXML(r, tag, null);
|
||||
} else {
|
||||
XML.writeXML(r, tag, null, (Object)args);
|
||||
XML.writeXML(r, tag, null, (Object[])args);
|
||||
}
|
||||
return r.getBuffer().toString();
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Reference in New Issue