Skip to content

Commit

Permalink
Fix unit test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
namannandan committed Nov 8, 2023
1 parent 69574b7 commit 7565730
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public void testMetricCacheAddAutoDetectMetricBackendWithoutType() {
new Dimension("Level", "model"));
metricCache.addAutoDetectMetricBackend(metric);
IMetric cachedMetric = metricCache.getMetricBackend("TestMetricWithoutType");
Assert.assertEquals(PrometheusCounter.class, cachedMetric.getClass());
Assert.assertEquals(cachedMetric.type, MetricBuilder.MetricType.COUNTER);
Assert.assertEquals(cachedMetric.name, "TestMetricWithoutType");
Assert.assertEquals(cachedMetric.unit, "count");
Expand All @@ -98,7 +97,6 @@ public void testMetricCacheAddAutoDetectMetricBackendWithType() {
new Dimension("Level", "model"));
metricCache.addAutoDetectMetricBackend(metric);
IMetric cachedMetric = metricCache.getMetricBackend("TestMetricWithType");
Assert.assertEquals(PrometheusGauge.class, cachedMetric.getClass());
Assert.assertEquals(cachedMetric.type, MetricBuilder.MetricType.GAUGE);
Assert.assertEquals(cachedMetric.name, "TestMetricWithType");
Assert.assertEquals(cachedMetric.unit, "count");
Expand Down

0 comments on commit 7565730

Please sign in to comment.