diff --git a/src/test/java/org/elasticsearch/test/transport/MockTransportService.java b/src/test/java/org/elasticsearch/test/transport/MockTransportService.java index 9e920a7dedb..be54ab7dd93 100644 --- a/src/test/java/org/elasticsearch/test/transport/MockTransportService.java +++ b/src/test/java/org/elasticsearch/test/transport/MockTransportService.java @@ -234,12 +234,14 @@ public class MockTransportService extends TransportService { @Override public Transport start() throws ElasticsearchException { - return transport.start(); + transport.start(); + return this; } @Override public Transport stop() throws ElasticsearchException { - return transport.stop(); + transport.stop(); + return this; } @Override