diff --git a/elasticsearch/src/test/java/org/elasticsearch/transport/KnownActionsTests.java b/elasticsearch/src/test/java/org/elasticsearch/transport/KnownActionsTests.java index 84cfca3de0d..6b1e96f41df 100644 --- a/elasticsearch/src/test/java/org/elasticsearch/transport/KnownActionsTests.java +++ b/elasticsearch/src/test/java/org/elasticsearch/transport/KnownActionsTests.java @@ -75,7 +75,7 @@ public class KnownActionsTests extends SecurityIntegTestCase { public void testAllTransportHandlersAreKnown() { TransportService transportService = internalCluster().getDataNodeInstance(TransportService.class); for (String handler : transportService.requestHandlers.keySet()) { - if (!knownHandlers.contains(handler)) { + if (!knownActions.contains(handler)) { assertThat("elasticsearch core transport handler [" + handler + "] is unknown to security", knownHandlers, hasItem(handler)); }