mirror of https://github.com/apache/lucene.git
tests: use logging instead of stdout so output interleaves properly
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@819420 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9989774d33
commit
bf60014ce4
|
@ -237,7 +237,7 @@ public class TestDistributedSearch extends AbstractSolrTestCase {
|
|||
compareResponses(rsp, controlRsp);
|
||||
|
||||
if (stress>0) {
|
||||
System.out.println("starting stress...");
|
||||
log.info("starting stress...");
|
||||
Thread[] threads = new Thread[nThreads];
|
||||
for (int i=0; i<threads.length; i++) {
|
||||
threads[i] = new Thread() {
|
||||
|
@ -488,8 +488,7 @@ public class TestDistributedSearch extends AbstractSolrTestCase {
|
|||
String cmp;
|
||||
cmp = compare(a.getResponse(), b.getResponse(), flags, handle);
|
||||
if (cmp != null) {
|
||||
System.out.println(a);
|
||||
System.out.println(b);
|
||||
log.info("Mismatched responses:\n"+a+"\n"+b);
|
||||
TestCase.fail(cmp);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue