diff options
Diffstat (limited to 'core/src/test/java/org/elasticsearch/bwcompat/UnicastBackwardsCompatibilityIT.java')
-rw-r--r-- | core/src/test/java/org/elasticsearch/bwcompat/UnicastBackwardsCompatibilityIT.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/test/java/org/elasticsearch/bwcompat/UnicastBackwardsCompatibilityIT.java b/core/src/test/java/org/elasticsearch/bwcompat/UnicastBackwardsCompatibilityIT.java index ab7e95812f..d6eea58cb7 100644 --- a/core/src/test/java/org/elasticsearch/bwcompat/UnicastBackwardsCompatibilityIT.java +++ b/core/src/test/java/org/elasticsearch/bwcompat/UnicastBackwardsCompatibilityIT.java @@ -22,6 +22,7 @@ package org.elasticsearch.bwcompat; import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.test.ESBackcompatTestCase; +import org.elasticsearch.transport.TransportSettings; import static org.hamcrest.Matchers.equalTo; @@ -30,7 +31,7 @@ public class UnicastBackwardsCompatibilityIT extends ESBackcompatTestCase { protected Settings nodeSettings(int nodeOrdinal) { return Settings.builder() .put(super.nodeSettings(nodeOrdinal)) - .put("transport.tcp.port", 9380 + nodeOrdinal) + .put(TransportSettings.PORT.getKey(), 9380 + nodeOrdinal) .put("discovery.zen.ping.unicast.hosts", "localhost:9380,localhost:9381,localhost:9390,localhost:9391") .build(); } @@ -39,7 +40,7 @@ public class UnicastBackwardsCompatibilityIT extends ESBackcompatTestCase { protected Settings externalNodeSettings(int nodeOrdinal) { return Settings.settingsBuilder() .put(super.externalNodeSettings(nodeOrdinal)) - .put("transport.tcp.port", 9390 + nodeOrdinal) + .put(TransportSettings.PORT.getKey(), 9390 + nodeOrdinal) .put("discovery.zen.ping.unicast.hosts", "localhost:9380,localhost:9381,localhost:9390,localhost:9391") .build(); } |