mirror of https://github.com/apache/lucene.git
SOLR-15076: Fix wrong test assumption - type of this property has changed
in SOLR-14924.
This commit is contained in:
parent
ce1bba6d66
commit
166d39a12e
|
@ -358,7 +358,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
|
||||||
Object timesFailed = ((NamedList)details.get("follower")).get(IndexFetcher.TIMES_FAILED);
|
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
|
// 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
|
// 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) {
|
if (3 != i) {
|
||||||
// index & fetch
|
// index & fetch
|
||||||
|
|
Loading…
Reference in New Issue