From 11ee37468f5cd7eb05db835a0813318afddbf35f Mon Sep 17 00:00:00 2001 From: Ruizhen Date: Tue, 5 May 2020 18:53:45 -0700 Subject: [PATCH] Fix a bug in unit test --- .../elasticsearch/performanceanalyzer/collectors/StatsTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/collectors/StatsTests.java b/src/test/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/collectors/StatsTests.java index 7dc7766b..6af9e1c6 100644 --- a/src/test/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/collectors/StatsTests.java +++ b/src/test/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/collectors/StatsTests.java @@ -89,6 +89,7 @@ public void testStats() throws Exception { private static void runInSerial(int iterateSize, LinkedList exceptionCodeList, StatsCollector sc) { int i = 0; + sc.getCounters().clear(); for(; i < EXEC_COUNT-1; i++) { iterate(exceptionCodeList, i * iterateSize, iterateSize, sc); }