From 69c559c00b08484ac2d344ec8db64367401896b0 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Sat, 23 Feb 2013 14:26:29 +0000 Subject: [PATCH] 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 --- .../apache/solr/handler/TestReplicationHandler.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 794c5187b45..ab4f11968cf 100644 --- a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java +++ b/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java @@ -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()); }