Tests: Force tribe node to use the same "node.mode" as the tribe client nodes.

This commit is contained in:
Ryan Ernst 2016-02-03 14:37:07 -08:00
parent f3ab5d2f4c
commit 14f03a9750
1 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,9 @@ public class TribeUnitTests extends ESTestCase {
//they can find their corresponding tribes using the proper transport
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(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 (Client client = node.client()) {