From 3f42df8e378c578f47bb22c96726d75c137277f8 Mon Sep 17 00:00:00 2001 From: Madan Kumar Epuri Date: Mon, 18 May 2020 17:11:25 -0400 Subject: [PATCH] Change function name --- gradle/wrapper/gradle-wrapper.properties | 6 +++--- .../reporter/cloudwatch/CloudWatchReporterTest.java | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 664cdee..7bb6ef8 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Mon May 18 17:08:40 EDT 2020 -distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip +#Sat Aug 19 22:06:38 PDT 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip \ No newline at end of file diff --git a/src/test/java/io/github/azagniotov/metrics/reporter/cloudwatch/CloudWatchReporterTest.java b/src/test/java/io/github/azagniotov/metrics/reporter/cloudwatch/CloudWatchReporterTest.java index 5cf7ecc..ea9db56 100644 --- a/src/test/java/io/github/azagniotov/metrics/reporter/cloudwatch/CloudWatchReporterTest.java +++ b/src/test/java/io/github/azagniotov/metrics/reporter/cloudwatch/CloudWatchReporterTest.java @@ -11,7 +11,6 @@ import com.codahale.metrics.ExponentialMovingAverages; import com.codahale.metrics.Gauge; import com.codahale.metrics.Histogram; -import com.codahale.metrics.Meter; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.SlidingWindowReservoir; import org.junit.Before; @@ -70,7 +69,7 @@ public class CloudWatchReporterTest { @BeforeClass public static void beforeClass() throws Exception { - reduceMeterDefaultTickInterval(); + reduceExponentialMovingAveragesDefaultTickInterval(); } @Before @@ -593,7 +592,7 @@ private void buildReportWithSleep(final CloudWatchReporter.Builder cloudWatchRep /** * This is a very ugly way to fool the {@link EWMA} by reducing the default tick interval - * in {@link Meter} from {@code 5} seconds to {@code 1} millisecond in order to ensure that + * in {@link ExponentialMovingAverages} from {@code 5} seconds to {@code 1} millisecond in order to ensure that * exponentially-weighted moving average rates are populated. This helps to verify that all * the expected {@link Dimension}s are present in {@link MetricDatum}. * @@ -602,7 +601,7 @@ private void buildReportWithSleep(final CloudWatchReporter.Builder cloudWatchRep * @see ExponentialMovingAverages#tickIfNecessary() * @see MetricDatum#getDimensions() */ - private static void reduceMeterDefaultTickInterval() throws NoSuchFieldException, IllegalAccessException { + private static void reduceExponentialMovingAveragesDefaultTickInterval() throws NoSuchFieldException, IllegalAccessException { setFinalStaticField(ExponentialMovingAverages.class, "TICK_INTERVAL", TimeUnit.MILLISECONDS.toNanos(1)); }