fix test to wipe lenient index first

This commit is contained in:
Simon Willnauer 2016-01-13 10:03:20 +01:00
parent 050afe9171
commit 2c978941f5
1 changed files with 1 additions and 0 deletions

View File

@ -335,6 +335,7 @@ public class ClusterSettingsIT extends ESIntegTestCase {
assertAcked(prepareCreate("test"));
ensureGreen();
client().admin().indices().prepareUpdateSettings("test").setSettings(Settings.builder().put("index.refresh_interval", "10")).execute().actionGet();
client().admin().indices().prepareDelete("test").get();
} finally {
// Restore the default so subsequent tests require units:
assertFalse(Settings.getSettingsRequireUnits());