Added client_ prefix to node clients created by TestCluster (client_node_#)

This commit is contained in:
Luca Cavanna 2013-09-04 10:37:00 +02:00
parent 74b00b63ea
commit e5b829303e
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ public class TestCluster {
public Client nodeClient() { public Client nodeClient() {
ensureOpen(); ensureOpen();
if (clientNode == null) { if (clientNode == null) {
String name = buildNodeName(); String name = "client_" + buildNodeName();
String settingsSource = getClass().getName().replace('.', '/') + ".yml"; String settingsSource = getClass().getName().replace('.', '/') + ".yml";
Settings finalSettings = settingsBuilder().loadFromClasspath(settingsSource).put(defaultSettings).put("node.client", true).put("name", name) Settings finalSettings = settingsBuilder().loadFromClasspath(settingsSource).put(defaultSettings).put("node.client", true).put("name", name)
.build(); .build();