lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [lucene-solr] branch branch_8x updated: SOLR-15076: Fix wrong test assumption - type of this property has changed in SOLR-14924.
Date Mon, 25 Jan 2021 16:00:50 GMT
This is an automated email from the ASF dual-hosted git repository.

ab 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 eaae9d1  SOLR-15076: Fix wrong test assumption - type of this property has changed
in SOLR-14924.
eaae9d1 is described below

commit eaae9d18822c7648d0e0cfacc4e9e79b67ffbe90
Author: Andrzej Bialecki <ab@apache.org>
AuthorDate: Mon Jan 25 16:54:40 2021 +0100

    SOLR-15076: Fix wrong test assumption - type of this property has changed
    in SOLR-14924.
---
 solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java b/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java
index 2aedee2..62b994f 100644
--- a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java
+++ b/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java
@@ -358,7 +358,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
       Object timesFailed = ((NamedList)details.get("slave")).get(IndexFetcher.TIMES_FAILED);
       // SOLR-7134: we can have a fail because some mock index files have no checksum, will
       // always be downloaded, and may not be able to be moved into the existing index
-      assertTrue(i + ": " + "follower has fetch error count: " + (String)timesFailed, timesFailed
== null || ((String) timesFailed).equals("1"));
+      assertTrue(i + ": " + "follower has fetch error count: " + timesFailed, timesFailed
== null || ((Number) timesFailed).intValue() == 1);
 
       if (3 != i) {
         // index & fetch


Mime
View raw message