diff --git a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/AutoFollowCoordinatorTests.java b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/AutoFollowCoordinatorTests.java index 7a725409e4e46..dd449992de636 100644 --- a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/AutoFollowCoordinatorTests.java +++ b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/AutoFollowCoordinatorTests.java @@ -2051,7 +2051,6 @@ void cleanFollowedRemoteIndices(ClusterState remoteClusterState, List pa } } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/73797") public void testExcludedPatternIndicesAreNotAutoFollowed() { final Client client = mock(Client.class); when(client.getRemoteClusterClient(anyString())).thenReturn(client); @@ -2086,15 +2085,11 @@ public void testExcludedPatternIndicesAreNotAutoFollowed() { Map.of(pattern, Map.of())))) .build(); - ClusterState remoteState = null; + ClusterState remoteState = ClusterState.EMPTY_STATE; final int nbLeaderIndices = randomIntBetween(0, 15); for (int i = 0; i < nbLeaderIndices; i++) { String indexName = "docs-" + i; - if (remoteState == null) { - remoteState = createRemoteClusterState(indexName, true); - } else { - remoteState = createRemoteClusterState(remoteState, indexName); - } + remoteState = createRemoteClusterState(remoteState, indexName); } final int nbLeaderExcludedIndices = randomIntBetween(1, 15);