[TEST] return the correct transport instance in mock transport

This commit is contained in:
Shay Banon 2014-04-07 22:34:47 +02:00
parent 49c74e0885
commit a1d0eee6bf
1 changed files with 4 additions and 2 deletions

View File

@ -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