[TEST] return the correct transport instance in mock transport
This commit is contained in:
parent
49c74e0885
commit
a1d0eee6bf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue