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 a561b655d64..b6975daac48 100644 --- a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java +++ b/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java @@ -799,7 +799,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 { master.copyConfigFile(CONF_DIR + slaveSchema, "schema.xml"); } - int docs = random().nextInt(maxDocs); + int docs = random().nextInt(maxDocs) + 1; for (int i = 0; i < docs; i++) { index(masterClient, "id", id++, "name", "name = " + i); }