chia7712 commented on a change in pull request #10535: URL: https://github.com/apache/kafka/pull/10535#discussion_r624720561
########## File path: core/src/test/scala/unit/kafka/server/AbstractApiVersionsRequestTest.scala ########## @@ -49,7 +49,9 @@ abstract class AbstractApiVersionsRequestTest(cluster: ClusterInstance) { val overrideHeader = IntegrationTestUtils.nextRequestHeader(ApiKeys.API_VERSIONS, Short.MaxValue) val socket = IntegrationTestUtils.connect(cluster.brokerSocketServers().asScala.head, cluster.clientListener()) try { - IntegrationTestUtils.sendWithHeader(request, overrideHeader, socket) + val serializedBytes = Utils.toArray( Review comment: Why this change is necessary? It seems to me the code gets more complicated. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org