Skip to content

Commit af2fe0e

Browse files
committed
I dont love a system propery just for one test, but at least the name cues you in now
1 parent b7fe5a2 commit af2fe0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

solr/core/src/java/org/apache/solr/core/NodeConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public static NodeConfig loadNodeConfig(Path solrHome, Properties nodeProperties
248248
// ZkFailoverTest test case...
249249
String zkHost = nodeProperties.getProperty(SolrXmlConfig.ZK_HOST);
250250
if (StrUtils.isNotNullOrEmpty(zkHost)) {
251-
int startUpZkTimeOut = 1000 * Integer.getInteger("solr.wait.for.zk", 0);
251+
int startUpZkTimeOut = 1000 * Integer.getInteger("solr.tests.wait.for.zk.seconds", 0);
252252
if (startUpZkTimeOut == 0) {
253253
startUpZkTimeOut = SolrZkClientTimeout.DEFAULT_ZK_CLIENT_TIMEOUT;
254254
}

solr/core/src/test/org/apache/solr/cloud/ZkFailoverTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static void setupCluster() throws Exception {
4747

4848
@AfterClass
4949
public static void resetWaitForZk() {
50-
System.setProperty("solr.wait.for.zk", "30");
50+
System.setProperty("solr.tests.wait.for.zk.seconds", "30");
5151
}
5252

5353
public void testRestartZkWhenClusterDown() throws Exception {

0 commit comments

Comments
 (0)