chia7712 commented on code in PR #19776: URL: https://github.com/apache/kafka/pull/19776#discussion_r2147492786
########## core/src/test/scala/unit/kafka/server/GroupCoordinatorBaseRequestTest.scala: ########## @@ -900,42 +901,32 @@ class GroupCoordinatorBaseRequestTest(cluster: ClusterInstance) { } protected def connectAny(): Socket = { - val socket: Socket = IntegrationTestUtils.connect( - cluster.anyBrokerSocketServer(), - cluster.clientListener() - ) + val socket: Socket = IntegrationTestUtils.connect(cluster.boundPorts().asScala.head) openSockets += socket socket } protected def connect(destination: Int): Socket = { - val socket: Socket = IntegrationTestUtils.connect( - brokerSocketServer(destination), - cluster.clientListener() - ) + val socket: Socket = IntegrationTestUtils.connect(cluster.boundPorts().asScala.head) Review Comment: ``` val socket = IntegrationTestUtils.connect(brokerSocketServer(destination).boundPort(cluster.clientListener())) ``` -- 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