diff --git a/core/src/test/java/org/elasticsearch/transport/ContextAndHeaderTransportIT.java b/core/src/test/java/org/elasticsearch/transport/ContextAndHeaderTransportIT.java index 00aa7e81f30..566d1d85b04 100644 --- a/core/src/test/java/org/elasticsearch/transport/ContextAndHeaderTransportIT.java +++ b/core/src/test/java/org/elasticsearch/transport/ContextAndHeaderTransportIT.java @@ -400,19 +400,18 @@ public class ContextAndHeaderTransportIT extends ESIntegTestCase { public Collection nodeModules() { return Collections.singletonList(new ActionLoggingModule()); } + + public void onModule(ActionModule module) { + module.registerFilter(LoggingFilter.class); + } } public static class ActionLoggingModule extends AbstractModule { - - @Override protected void configure() { bind(LoggingFilter.class).asEagerSingleton(); } - public void onModule(ActionModule module) { - module.registerFilter(LoggingFilter.class); - } } public static class LoggingFilter extends ActionFilter.Simple {