Merge branch 'stable-2.14' into stable-2.15

* stable-2.14:
  Make ElasticIndexIT tests fail if test container fails to start

Change-Id: I709c31cddf708026fc0478cb3fb7c9effb0e4fca
This commit is contained in:
David Pursehouse
2018-06-15 12:01:17 +09:00

View File

@@ -28,12 +28,8 @@ public class ElasticIndexIT extends AbstractIndexTests {
private static Config getConfig(ElasticVersion version) {
ElasticNodeInfo elasticNodeInfo;
try {
container = ElasticContainer.createAndStart(version);
elasticNodeInfo = new ElasticNodeInfo(container.getHttpHost().getPort());
} catch (Throwable t) {
return null;
}
container = ElasticContainer.createAndStart(version);
elasticNodeInfo = new ElasticNodeInfo(container.getHttpHost().getPort());
String indicesPrefix = UUID.randomUUID().toString();
Config cfg = new Config();
ElasticTestUtils.configure(cfg, elasticNodeInfo.port, indicesPrefix);