Added client_ prefix to node clients created by TestCluster (client_node_#)
This commit is contained in:
parent
74b00b63ea
commit
e5b829303e
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue