From 166d39a12eff53d9cfdf47b101cfe98a7020dcba Mon Sep 17 00:00:00 2001 From: Andrzej Bialecki Date: Mon, 25 Jan 2021 16:54:40 +0100 Subject: [PATCH] SOLR-15076: Fix wrong test assumption - type of this property has changed in SOLR-14924. --- .../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 3c640da5089..1a4da88955f 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("follower")).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