Fix error from rebasing onto master: server numbering starts at 0.
@@ -113,7 +113,7 @@ public class ZooKeeperServerTest {
"4lw.commands.whitelist=conf,cons,crst,dirs,dump,envi,mntr,ruok,srst,srvr,stat,wchs\n" +
"admin.enableServer=false\n" +
"serverCnxnFactory=org.apache.zookeeper.server.NettyServerCnxnFactory\n" +
- "server.1=foo:321:123\n";
+ "server.0=foo:321:123\n";
validateConfigFile(cfgFile, expected);
}
@@ -131,9 +131,9 @@ public class ZooKeeperServerTest {
"4lw.commands.whitelist=conf,cons,crst,dirs,dump,envi,mntr,ruok,srst,srvr,stat,wchs\n" +
"admin.enableServer=false\n" +
"serverCnxnFactory=org.apache.zookeeper.server.NettyServerCnxnFactory\n" +
- "server.1=foo:321:123\n" +
- "server.2=bar:432:234\n" +
- "server.3=baz:543:345\n";
+ "server.0=foo:321:123\n" +
+ "server.1=bar:432:234\n" +
+ "server.2=baz:543:345\n";
validateConfigFile(cfgFile, expected);
}
