TaiJuWu commented on code in PR #20598:
URL: https://github.com/apache/kafka/pull/20598#discussion_r2692516441
##########
clients/src/test/java/org/apache/kafka/clients/NodeApiVersionsTest.java:
##########
@@ -76,7 +76,7 @@ public void testVersionsToString() {
NodeApiVersions versions = new NodeApiVersions(versionList,
Collections.emptyList());
StringBuilder bld = new StringBuilder();
String prefix = "(";
- for (ApiKeys apiKey : ApiKeys.values()) {
+ for (ApiKeys apiKey :
ApiKeys.apisForListener(ApiMessageType.ListenerType.BROKER)) {
Review Comment:
ditto
##########
clients/src/test/java/org/apache/kafka/clients/NodeApiVersionsTest.java:
##########
@@ -65,7 +65,7 @@ public void testUnknownApiVersionsToString() {
@Test
public void testVersionsToString() {
List<ApiVersion> versionList = new ArrayList<>();
- for (ApiKeys apiKey : ApiKeys.values()) {
+ for (ApiKeys apiKey :
ApiKeys.apisForListener(ApiMessageType.ListenerType.BROKER)) {
Review Comment:
Need to revert
--
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]