fix test to not use client nodes

This commit is contained in:
Simon Willnauer 2015-10-23 12:21:56 +02:00
parent 82050e8d30
commit 42af6c6db9
1 changed files with 3 additions and 4 deletions

View File

@ -21,7 +21,6 @@ package org.elasticsearch.index;
import org.elasticsearch.cluster.ClusterModule; import org.elasticsearch.cluster.ClusterModule;
import org.elasticsearch.cluster.settings.Validator; import org.elasticsearch.cluster.settings.Validator;
import org.elasticsearch.common.inject.AbstractModule; import org.elasticsearch.common.inject.AbstractModule;
import org.elasticsearch.common.inject.Binder;
import org.elasticsearch.common.inject.Module; import org.elasticsearch.common.inject.Module;
import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.plugins.Plugin; import org.elasticsearch.plugins.Plugin;
@ -34,9 +33,8 @@ import java.util.function.Consumer;
import static org.elasticsearch.test.ESIntegTestCase.Scope.SUITE; import static org.elasticsearch.test.ESIntegTestCase.Scope.SUITE;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked; import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
import static org.hamcrest.Matchers.nullValue;
@ClusterScope(scope = SUITE, numDataNodes = 1, transportClientRatio = 0.0) @ClusterScope(scope = SUITE, numDataNodes = 1, numClientNodes = 0)
public class SettingsListenerIT extends ESIntegTestCase { public class SettingsListenerIT extends ESIntegTestCase {
@Override @Override
@ -95,6 +93,7 @@ public class SettingsListenerIT extends ESIntegTestCase {
public static class SettingsTestingService implements Consumer<Settings> { public static class SettingsTestingService implements Consumer<Settings> {
public volatile int value; public volatile int value;
@Override @Override
public void accept(Settings settings) { public void accept(Settings settings) {
value = settings.getAsInt("index.test.new.setting", -1); value = settings.getAsInt("index.test.new.setting", -1);