diff --git a/muted-tests.yml b/muted-tests.yml index 07ff5a01089b7..0f9dd2736e3d7 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -516,9 +516,6 @@ tests: - class: org.elasticsearch.xpack.esql.expression.function.scalar.score.DecayTests method: "testEvaluateBlockWithNulls {TestCase=, , , <_source> #2}" issue: https://github.com/elastic/elasticsearch/issues/134679 -- class: org.elasticsearch.discovery.DiscoveryDisruptionIT - method: testElectMasterWithLatestVersion - issue: https://github.com/elastic/elasticsearch/issues/134748 - class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT method: test {csv-spec:fork.ForkBeforeStatsByWithWhere} issue: https://github.com/elastic/elasticsearch/issues/134817 diff --git a/server/src/internalClusterTest/java/org/elasticsearch/discovery/DiscoveryDisruptionIT.java b/server/src/internalClusterTest/java/org/elasticsearch/discovery/DiscoveryDisruptionIT.java index c5ab9a4def526..ea702cb1e0e77 100644 --- a/server/src/internalClusterTest/java/org/elasticsearch/discovery/DiscoveryDisruptionIT.java +++ b/server/src/internalClusterTest/java/org/elasticsearch/discovery/DiscoveryDisruptionIT.java @@ -147,7 +147,8 @@ public void testElectMasterWithLatestVersion() throws Exception { isolateAllNodes.stopDisrupting(); awaitMasterNode(); - final ClusterState state = clusterAdmin().prepareState(TEST_REQUEST_TIMEOUT).get().getState(); + final var masterNodeAdminClient = client(internalCluster().getMasterName()).admin().cluster(); + final ClusterState state = masterNodeAdminClient.prepareState(TEST_REQUEST_TIMEOUT).get().getState(); if (state.metadata().getProject().hasIndex("test") == false) { fail("index 'test' was lost. current cluster state: " + state); }