chia7712 commented on code in PR #23929:
URL: https://github.com/apache/kafka/pull/23929#discussion_r4365031202
##########
connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerTaskTest.java:
##########
@@ -67,7 +67,7 @@ public class WorkerTaskTest {
@Mock private TaskStatus.Listener statusListener;
@Mock private ClassLoader loader;
@Mock private StatusBackingStore statusBackingStore;
- private ConnectMetrics metrics;
+ private MockConnectMetrics metrics;
Review Comment:
Could you initialize it directly and then remove setup and the null check in
tearDown?
--
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]