Skip to content

Commit 166d39a

Browse files
committed
SOLR-15076: Fix wrong test assumption - type of this property has changed
in SOLR-14924.
1 parent ce1bba6 commit 166d39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public void doTestDetails() throws Exception {
358358
Object timesFailed = ((NamedList)details.get("follower")).get(IndexFetcher.TIMES_FAILED);
359359
// SOLR-7134: we can have a fail because some mock index files have no checksum, will
360360
// always be downloaded, and may not be able to be moved into the existing index
361-
assertTrue(i + ": " + "follower has fetch error count: " + (String)timesFailed, timesFailed == null || ((String) timesFailed).equals("1"));
361+
assertTrue(i + ": " + "follower has fetch error count: " + timesFailed, timesFailed == null || ((Number) timesFailed).intValue() == 1);
362362

363363
if (3 != i) {
364364
// index & fetch

0 commit comments

Comments
 (0)