Skip to content

Commit 087a85a

Browse files
committed
always auto manage min master node in testTwoNodeCluster
1 parent 9097abe commit 087a85a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/framework/src/test/java/org/elasticsearch/test/test/InternalTestClusterTests.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import org.elasticsearch.test.InternalTestCluster;
3535
import org.elasticsearch.test.NodeConfigurationSource;
3636
import org.elasticsearch.test.discovery.TestZenDiscovery;
37-
import org.elasticsearch.test.junit.annotations.TestLogging;
3837
import org.elasticsearch.transport.MockTcpTransportPlugin;
3938
import org.elasticsearch.transport.TransportSettings;
4039
import org.hamcrest.Matcher;
@@ -409,9 +408,7 @@ public Settings transportClientSettings() {
409408
}
410409
}
411410

412-
@TestLogging("_root:DEBUG")
413411
public void testTwoNodeCluster() throws Exception {
414-
final boolean autoManageMinMasterNodes = randomBoolean();
415412
NodeConfigurationSource nodeConfigurationSource = new NodeConfigurationSource() {
416413
@Override
417414
public Settings nodeSettings(int nodeOrdinal) {
@@ -430,7 +427,7 @@ public Settings transportClientSettings() {
430427
boolean enableHttpPipelining = randomBoolean();
431428
String nodePrefix = "test";
432429
Path baseDir = createTempDir();
433-
InternalTestCluster cluster = new InternalTestCluster(randomLong(), baseDir, false, autoManageMinMasterNodes, 2, 2,
430+
InternalTestCluster cluster = new InternalTestCluster(randomLong(), baseDir, false, true, 2, 2,
434431
"test", nodeConfigurationSource, 0, enableHttpPipelining, nodePrefix,
435432
Arrays.asList(MockTcpTransportPlugin.class, TestZenDiscovery.TestPlugin.class), Function.identity());
436433
try {

0 commit comments

Comments
 (0)