tests: test can fail depending on order tests are run in

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1449323 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-02-23 14:26:29 +00:00
parent 3adabbd43a
commit 69c559c00b
1 changed files with 10 additions and 2 deletions

View File

@ -453,6 +453,11 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
masterJetty.stop();
masterJetty = createJetty(master);
masterClient = createNewSolrServer(masterJetty.getLocalPort());
slave.copyConfigFile(CONF_DIR + "schema-replication1.xml", "schema.xml");
slaveJetty.stop();
slaveJetty = createJetty(slave);
slaveClient = createNewSolrServer(slaveJetty.getLocalPort());
}
@Test
@ -969,16 +974,19 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
assertEquals("newname = 2001", (String) d.getFieldValue("newname"));
// revert configs
//change solrconfig on master
master.copyConfigFile(CONF_DIR + "solrconfig-master1.xml",
"solrconfig.xml");
//change schema on master
master.copyConfigFile(CONF_DIR + "schema-replication1.xml",
"schema.xml");
masterJetty.stop();
masterJetty = createJetty(master);
masterClient = createNewSolrServer(masterJetty.getLocalPort());
slave.copyConfigFile(CONF_DIR + "schema-replication1.xml", "schema.xml");
slaveJetty.stop();
slaveJetty = createJetty(slave);
slaveClient = createNewSolrServer(slaveJetty.getLocalPort());
}