Skip to content

Commit

Permalink
do not start ZK server embedded http server
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico Olivelli committed May 14, 2018
1 parent 2e590ee commit f51b270
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
*/
public class TestingZookeeperServerEmbedded implements AutoCloseable {

static {
System.setProperty("zookeeper.admin.enableServer", "false");
System.setProperty("zookeeper.admin.serverPort", "0");
}

QuorumPeerConfig config;
QuorumPeerMain maincluster;
ZooKeeperServerMain mainsingle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
public class ZKTestEnv implements AutoCloseable {

static {
System.setProperty("zookeeper.admin.enableServer", "false");
System.setProperty("zookeeper.admin.enableServer", "true");
System.setProperty("zookeeper.admin.serverPort", "0");
}

TestingZookeeperServerEmbedded zkServer;
Expand Down

0 comments on commit f51b270

Please sign in to comment.