You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by er...@apache.org on 2020/06/25 21:00:52 UTC
[lucene-solr] branch branch_8x updated: SOLR-14574: Fix or suppress
warnings in solr/core/src/test, fix 8x test failure
This is an automated email from the ASF dual-hosted git repository.
erick pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new 5adfb76 SOLR-14574: Fix or suppress warnings in solr/core/src/test, fix 8x test failure
5adfb76 is described below
commit 5adfb76db461abee90afe9de5173f7846e4ecb8e
Author: Erick Erickson <Er...@gmail.com>
AuthorDate: Thu Jun 25 17:00:44 2020 -0400
SOLR-14574: Fix or suppress warnings in solr/core/src/test, fix 8x test failure
---
.../src/test/org/apache/solr/search/CurrencyRangeFacetCloudTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/solr/core/src/test/org/apache/solr/search/CurrencyRangeFacetCloudTest.java b/solr/core/src/test/org/apache/solr/search/CurrencyRangeFacetCloudTest.java
index 127ad6d..61ad8c2 100644
--- a/solr/core/src/test/org/apache/solr/search/CurrencyRangeFacetCloudTest.java
+++ b/solr/core/src/test/org/apache/solr/search/CurrencyRangeFacetCloudTest.java
@@ -394,7 +394,7 @@ public class CurrencyRangeFacetCloudTest extends SolrCloudTestCase {
for (int i = 0; i < 2; i++) {
final NamedList<Object> bucket = bar_buckets.get(i);
assertEquals((i * 10) + ".00,EUR", bucket.get("val"));
- assertEquals("bucket #" + i, 4L, bucket.get("count"));
+ assertEqualsHACK("bucket #" + i, 4L, bucket.get("count"));
@SuppressWarnings({"unchecked"})
final List<NamedList<Object>> foo_buckets = ((NamedList<List<NamedList<Object>>>)bucket.get("foo")).get("buckets");
assertEquals("bucket #" + i + " foo num buckets", 2, foo_buckets.size());