jim0987795064 commented on code in PR #19776:
URL: https://github.com/apache/kafka/pull/19776#discussion_r2114114865


##########
core/src/test/scala/unit/kafka/server/AbstractApiVersionsRequestTest.scala:
##########
@@ -41,12 +42,18 @@ abstract class AbstractApiVersionsRequestTest(cluster: 
ClusterInstance) {
     } else {
       cluster.brokerSocketServers().asScala.head
     }
-    IntegrationTestUtils.connectAndReceive[ApiVersionsResponse](request, 
socket, listenerName)
+
+    val port = socket.boundPort(listenerName)
+
+    IntegrationTestUtils.connectAndReceive[ApiVersionsResponse](request, port)
   }
 
   def sendUnsupportedApiVersionRequest(request: ApiVersionsRequest): 
ApiVersionsResponse = {
     val overrideHeader = 
IntegrationTestUtils.nextRequestHeader(ApiKeys.API_VERSIONS, Short.MaxValue)
-    val socket = 
IntegrationTestUtils.connect(cluster.brokerSocketServers().asScala.head, 
cluster.clientListener())
+    val socketServer = cluster.brokerSocketServers().asScala.head

Review Comment:
   Hello, @chia7712 I've addressed these 3 issues mentioned above.
   Could you please review these?



-- 
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

Reply via email to