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
This commit is contained in:
Mark Robert Miller 2011-08-11 02:00:11 +00:00
parent adab6ebc59
commit 9d3eb8755b
1 changed files with 6 additions and 0 deletions

View File

@ -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<Object> 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");