You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2016/09/07 10:10:40 UTC

lucene-solr:master: Improve error message to help debug test failures

Repository: lucene-solr
Updated Branches:
  refs/heads/master ea85acd7c -> ce84a8df1


Improve error message to help debug test failures


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/ce84a8df
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ce84a8df
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ce84a8df

Branch: refs/heads/master
Commit: ce84a8df12e6a9be6b2580aa3351b055810daf6f
Parents: ea85acd
Author: Alan Woodward <ro...@apache.org>
Authored: Wed Sep 7 11:10:28 2016 +0100
Committer: Alan Woodward <ro...@apache.org>
Committed: Wed Sep 7 11:10:28 2016 +0100

----------------------------------------------------------------------
 solr/core/src/test/org/apache/solr/TestDistributedSearch.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ce84a8df/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/TestDistributedSearch.java b/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
index e88afe9..a5cc80c 100644
--- a/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
+++ b/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
@@ -1169,12 +1169,12 @@ public class TestDistributedSearch extends BaseDistributedSearchTestCase {
           if (upShards.contains(s)) {
             // this is no longer true if there was a query timeout on an up shard
             // assertTrue("Expected to find numFound in the up shard info",info.get("numFound") != null);
-            assertTrue("Expected to find shardAddress in the up shard info",info.get("shardAddress") != null);
+            assertTrue("Expected to find shardAddress in the up shard info: " + info.toString(), info.get("shardAddress") != null);
           }
           else {
             assertEquals("Expected to find the "+SolrQueryResponse.RESPONSE_HEADER_PARTIAL_RESULTS_KEY+" header set if a shard is down",
                 Boolean.TRUE, rsp.getHeader().get(SolrQueryResponse.RESPONSE_HEADER_PARTIAL_RESULTS_KEY));
-            assertTrue("Expected to find error in the down shard info",info.get("error") != null);
+            assertTrue("Expected to find error in the down shard info: " + info.toString(), info.get("error") != null);
           }
         }
       }