From 7d13545e33a15a1f90188944788f023bcf6392dd Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 12 Feb 2013 19:28:48 +0100 Subject: [PATCH] delete indices before running the tests --- .../test/integration/indices/stats/SimpleIndexStatsTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/org/elasticsearch/test/integration/indices/stats/SimpleIndexStatsTests.java b/src/test/java/org/elasticsearch/test/integration/indices/stats/SimpleIndexStatsTests.java index 2153df9246d..121516ea5e1 100644 --- a/src/test/java/org/elasticsearch/test/integration/indices/stats/SimpleIndexStatsTests.java +++ b/src/test/java/org/elasticsearch/test/integration/indices/stats/SimpleIndexStatsTests.java @@ -57,6 +57,7 @@ public class SimpleIndexStatsTests extends AbstractNodesTests { @Test public void simpleStats() throws Exception { + client.admin().indices().prepareDelete().execute().actionGet(); // rely on 1 replica for this tests client.admin().indices().prepareCreate("test1").execute().actionGet(); client.admin().indices().prepareCreate("test2").execute().actionGet();