Use Settings.builder instead of settingsBuilder in ESSmokeClientTestCase.

This commit is contained in:
Adrien Grand 2016-04-08 18:37:05 +02:00
parent 42526ac28e
commit 4391594e4c
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public abstract class ESSmokeClientTestCase extends LuceneTestCase {
protected String index;
private static Client startClient(Path tempDir, TransportAddress... transportAddresses) {
Settings clientSettings = Settings.settingsBuilder()
Settings clientSettings = Settings.builder()
.put("node.name", "qa_smoke_client_" + counter.getAndIncrement())
.put(InternalSettingsPreparer.IGNORE_SYSTEM_PROPERTIES_SETTING.getKey(), true) // prevents any settings to be replaced by system properties.
.put("client.transport.ignore_cluster_name", true)