diff --git a/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java b/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java index ae573a316a1..9cb4ccba39a 100644 --- a/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java @@ -1605,7 +1605,7 @@ public abstract class AbstractSimpleTransportTestCase extends ESTestCase { latch.await(); serviceA.removeConnectionListener(waitForConnection); serviceB.removeConnectionListener(waitForConnection); - serviceB.removeConnectionListener(waitForConnection); + serviceC.removeConnectionListener(waitForConnection); Map toNodeMap = new HashMap<>();