Skip to content

Commit

Permalink
SOLR-15428: Update test for additional index metric, segment count.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrmiller committed Aug 11, 2021
1 parent a72c993 commit 28b0cb7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void testIndexMetricsNoDetails() throws Exception {

Map<String, Metric> metrics = registry.getMetrics();

assertEquals(12, metrics.entrySet().stream().filter(e -> e.getKey().startsWith("INDEX")).count());
assertEquals(13, metrics.entrySet().stream().filter(e -> e.getKey().startsWith("INDEX")).count());

// check basic index meters
Timer timer = (Timer)metrics.get("INDEX.merge.minor");
Expand All @@ -92,8 +92,8 @@ public void testIndexNoMetrics() throws Exception {
assertNotNull(registry);

Map<String, Metric> metrics = registry.getMetrics();
// INDEX.size, INDEX.sizeInBytes
assertEquals(2, metrics.entrySet().stream().filter(e -> e.getKey().startsWith("INDEX")).count());
// INDEX.size, INDEX.sizeInBytes, INDEX.segmentCount
assertEquals(3, metrics.entrySet().stream().filter(e -> e.getKey().startsWith("INDEX")).count());
}

@Test
Expand Down

0 comments on commit 28b0cb7

Please sign in to comment.