dplavcic commented on code in PR #12449: URL: https://github.com/apache/kafka/pull/12449#discussion_r935984902
########## streams/src/test/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImplTest.java: ########## @@ -1293,43 +1252,41 @@ private void verifyMetric(final String name, public void shouldMeasureLatency() { final long startTime = 6; final long endTime = 10; - final Sensor sensor = createMock(Sensor.class); - expect(sensor.shouldRecord()).andReturn(true); - expect(sensor.hasMetrics()).andReturn(true); - sensor.record(endTime - startTime); Review Comment: `shouldGetNewTopicLevelSensor` line became `verify(sensor).record(endTime - startTime);` -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org