diff --git a/core/src/test/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeActionTests.java b/core/src/test/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeActionTests.java index 39aaf166c3e..6f5be649451 100644 --- a/core/src/test/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeActionTests.java +++ b/core/src/test/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeActionTests.java @@ -84,7 +84,6 @@ public class TransportBroadcastByNodeActionTests extends ESTestCase { private TestClusterService clusterService; private CapturingTransport transport; - private TransportService transportService; private TestTransportBroadcastByNodeAction action; @@ -183,7 +182,7 @@ public class TransportBroadcastByNodeActionTests extends ESTestCase { super.setUp(); transport = new CapturingTransport(); clusterService = new TestClusterService(THREAD_POOL); - transportService = new TransportService(transport, THREAD_POOL); + final TransportService transportService = new TransportService(transport, THREAD_POOL); transportService.start(); setClusterState(clusterService, TEST_INDEX); action = new TestTransportBroadcastByNodeAction(