Tests: Force tribe node to use the same "node.mode" as the tribe client nodes.
This commit is contained in:
parent
f3ab5d2f4c
commit
14f03a9750
|
@ -117,7 +117,9 @@ public class TribeUnitTests extends ESTestCase {
|
||||||
//they can find their corresponding tribes using the proper transport
|
//they can find their corresponding tribes using the proper transport
|
||||||
Settings settings = Settings.builder().put("http.enabled", false).put("node.name", "tribe_node")
|
Settings settings = Settings.builder().put("http.enabled", false).put("node.name", "tribe_node")
|
||||||
.put("tribe.t1.node.mode", NODE_MODE).put("tribe.t2.node.mode", NODE_MODE)
|
.put("tribe.t1.node.mode", NODE_MODE).put("tribe.t2.node.mode", NODE_MODE)
|
||||||
.put(Environment.PATH_HOME_SETTING.getKey(), createTempDir()).put(extraSettings).build();
|
.put(Environment.PATH_HOME_SETTING.getKey(), createTempDir())
|
||||||
|
.put(Node.NODE_MODE_SETTING.getKey(), NODE_MODE)
|
||||||
|
.put(extraSettings).build();
|
||||||
|
|
||||||
try (Node node = new Node(settings).start()) {
|
try (Node node = new Node(settings).start()) {
|
||||||
try (Client client = node.client()) {
|
try (Client client = node.client()) {
|
||||||
|
|
Loading…
Reference in New Issue