[TEST] Disable InternalClusterInfoService in messy tests, it sends IndicesStatsRequest periodically which messes with the messy test

This commit is contained in:
Simon Willnauer 2016-03-22 10:12:03 +01:00
parent a0c68c281c
commit 47f0e6e8f4
1 changed files with 3 additions and 0 deletions

View File

@ -142,6 +142,9 @@ public class IndicesRequestTests extends ESIntegTestCase {
protected Settings nodeSettings(int ordinal) { protected Settings nodeSettings(int ordinal) {
// must set this independently of the plugin so it overrides MockTransportService // must set this independently of the plugin so it overrides MockTransportService
return Settings.builder().put(super.nodeSettings(ordinal)) return Settings.builder().put(super.nodeSettings(ordinal))
// InternalClusterInfoService sends IndicesStatsRequest periodically which messes with this test
// this setting disables it...
.put("cluster.routing.allocation.disk.threshold_enabled", false)
.put(NetworkModule.TRANSPORT_SERVICE_TYPE_KEY, "intercepting").build(); .put(NetworkModule.TRANSPORT_SERVICE_TYPE_KEY, "intercepting").build();
} }