diff --git a/elasticsearch/src/test/java/org/elasticsearch/transport/KnownActionsTests.java b/elasticsearch/src/test/java/org/elasticsearch/transport/KnownActionsTests.java index 6b1e96f41df..84cfca3de0d 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 (!knownActions.contains(handler)) { + if (!knownHandlers.contains(handler)) { assertThat("elasticsearch core transport handler [" + handler + "] is unknown to security", knownHandlers, hasItem(handler)); }