From 9d3eb8755bc03226a4cf8b300b2438eb15d56482 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Thu, 11 Aug 2011 02:00:11 +0000 Subject: [PATCH] SOLR-2705: Add extra test check suggested by Yury git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1156441 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/solr/handler/TestReplicationHandler.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 926729da1c1..71095b17560 100644 --- a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java +++ b/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java @@ -622,8 +622,14 @@ public class TestReplicationHandler extends SolrTestCaseJ4 { String cmp = TestDistributedSearch.compare(masterQueryResult, slaveQueryResult, 0, null); assertEquals(null, cmp); + Object version = getIndexVersion(masterClient).get("indexversion"); + NamedList commits = getCommits(masterClient); + reloadCore(masterClient, "collection1"); + assertEquals(version, getIndexVersion(masterClient).get("indexversion")); + assertEquals(commits, getCommits(masterClient)); + index(masterClient, "id", 110, "name", "name = 1"); index(masterClient, "id", 120, "name", "name = 2");