chia7712 commented on code in PR #23199:
URL: https://github.com/apache/kafka/pull/23199#discussion_r3855810330
##########
streams/src/test/java/org/apache/kafka/streams/kstream/internals/suppress/KTableSuppressProcessorMetricsTest.java:
##########
@@ -191,21 +189,22 @@ public void
shouldRecordMetricsWithBuiltInMetricsVersionLatest() {
{
final Map<MetricName, ? extends Metric> metrics =
context.metrics().metrics();
- verifyMetric(metrics, evictionRateMetric, greaterThan(0.0));
- verifyMetric(metrics, evictionTotalMetric, is(1.0));
- verifyMetric(metrics, bufferSizeAvgMetric, is(41.0));
- verifyMetric(metrics, bufferSizeMaxMetric, is(82.0));
- verifyMetric(metrics, bufferCountAvgMetric, is(1.0));
- verifyMetric(metrics, bufferCountMaxMetric, is(2.0));
+ assertEquals(evictionRateMetric.description(),
metrics.get(evictionRateMetric).metricName().description());
Review Comment:
This duplicates the description check in `verifyMetric.`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]