lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject lucene-solr:branch_7x: SOLR-12868: test was making wrong assumption
Date Sat, 27 Oct 2018 00:11:18 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x c5fcae8fb -> 575d3dac0


SOLR-12868: test was making wrong assumption


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

Branch: refs/heads/branch_7x
Commit: 575d3dac0ff12bc66e4cd7a211661307d43f3348
Parents: c5fcae8
Author: Noble Paul <noble@apache.org>
Authored: Sat Oct 27 11:10:59 2018 +1100
Committer: Noble Paul <noble@apache.org>
Committed: Sat Oct 27 11:10:59 2018 +1100

----------------------------------------------------------------------
 .../test/org/apache/solr/client/solrj/request/TestV2Request.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/575d3dac/solr/solrj/src/test/org/apache/solr/client/solrj/request/TestV2Request.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/request/TestV2Request.java b/solr/solrj/src/test/org/apache/solr/client/solrj/request/TestV2Request.java
index 4aa1b64..0cafc63 100644
--- a/solr/solrj/src/test/org/apache/solr/client/solrj/request/TestV2Request.java
+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/request/TestV2Request.java
@@ -102,7 +102,7 @@ public class TestV2Request extends SolrCloudTestCase {
     assertSuccess(client, new V2Request.Builder("/c/test").withMethod(SolrRequest.METHOD.DELETE).build());
     NamedList<Object> res = client.request(new V2Request.Builder("/c").build());
     List collections = (List) res.get("collections");
-    assertEquals(0, collections.size());
+    assertFalse( collections.contains("test"));
 
   }
 


Mime
View raw message