Skip to content

Commit

Permalink
Change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Madan Kumar Epuri committed May 18, 2020
1 parent b8c79d5 commit 3f42df8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -70,7 +69,7 @@ public class CloudWatchReporterTest {

@BeforeClass
public static void beforeClass() throws Exception {
reduceMeterDefaultTickInterval();
reduceExponentialMovingAveragesDefaultTickInterval();
}

@Before
Expand Down Expand Up @@ -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}.
*
Expand All @@ -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));
}

Expand Down

0 comments on commit 3f42df8

Please sign in to comment.