hgeraldino commented on code in PR #13383: URL: https://github.com/apache/kafka/pull/13383#discussion_r1169408565
########## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSourceTaskTest.java: ########## @@ -315,33 +305,28 @@ public void testPause() throws Exception { taskFuture.get(); - PowerMock.verifyAll(); + verifyCleanStartup(); + verifyTaskGetTopic(10); + verifyOffsetFlush(true); + verifyTopicCreation(TOPIC); + verify(statusListener).onPause(taskId); + verify(statusListener).onShutdown(taskId); + verify(sourceTask).stop(); + verify(offsetWriter).offset(PARTITION, OFFSET); + verifyClose(); } @Test public void testPollsInBackground() throws Exception { createWorkerTask(); - expectCleanStartup(); - final CountDownLatch pollLatch = expectPolls(10); // In this test, we don't flush, so nothing goes any further than the offset writer Review Comment: you're right, removed comment -- 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