浏览代码

[TEST] do not wipe excluded templates

In #13606, the ability to exclude a template from being wiped was added but a call to
wipeTemplates() was not removed, so all index templates were still being removed.

This change removes the wipeTemplates() call in the wipe method so that only the
non-excluded templates are removed.
jaymode 10 年之前
父节点
当前提交
077a401c28
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      core/src/test/java/org/elasticsearch/test/TestCluster.java

+ 0 - 1
core/src/test/java/org/elasticsearch/test/TestCluster.java

@@ -75,7 +75,6 @@ public abstract class TestCluster implements Iterable<Client>, Closeable {
      */
     public void wipe(Set<String> excludeTemplates) {
         wipeIndices("_all");
-        wipeTemplates();
         wipeAllTemplates(excludeTemplates);
         wipeRepositories();
     }