Skip to content

Commit

Permalink
always auto manage min master node in testTwoNodeCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
bleskes committed Dec 1, 2016
1 parent 9097abe commit 087a85a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.elasticsearch.test.InternalTestCluster;
import org.elasticsearch.test.NodeConfigurationSource;
import org.elasticsearch.test.discovery.TestZenDiscovery;
import org.elasticsearch.test.junit.annotations.TestLogging;
import org.elasticsearch.transport.MockTcpTransportPlugin;
import org.elasticsearch.transport.TransportSettings;
import org.hamcrest.Matcher;
Expand Down Expand Up @@ -409,9 +408,7 @@ public Settings transportClientSettings() {
}
}

@TestLogging("_root:DEBUG")
public void testTwoNodeCluster() throws Exception {
final boolean autoManageMinMasterNodes = randomBoolean();
NodeConfigurationSource nodeConfigurationSource = new NodeConfigurationSource() {
@Override
public Settings nodeSettings(int nodeOrdinal) {
Expand All @@ -430,7 +427,7 @@ public Settings transportClientSettings() {
boolean enableHttpPipelining = randomBoolean();
String nodePrefix = "test";
Path baseDir = createTempDir();
InternalTestCluster cluster = new InternalTestCluster(randomLong(), baseDir, false, autoManageMinMasterNodes, 2, 2,
InternalTestCluster cluster = new InternalTestCluster(randomLong(), baseDir, false, true, 2, 2,
"test", nodeConfigurationSource, 0, enableHttpPipelining, nodePrefix,
Arrays.asList(MockTcpTransportPlugin.class, TestZenDiscovery.TestPlugin.class), Function.identity());
try {
Expand Down

0 comments on commit 087a85a

Please sign in to comment.