adixitconfluent commented on code in PR #18864: URL: https://github.com/apache/kafka/pull/18864#discussion_r1968937977
########## group-coordinator/src/test/java/org/apache/kafka/coordinator/group/assignor/SimpleAssignorTest.java: ########## @@ -224,11 +253,15 @@ public void testAssignWithThreeMembersThreeTopicsHeterogeneous() { 2 )); - Map<String, MemberSubscriptionAndAssignmentImpl> members = new TreeMap<>(); + Set<Uuid> memberATopicsSubscription = new LinkedHashSet<>(); + memberATopicsSubscription.add(TOPIC_1_UUID); + memberATopicsSubscription.add(TOPIC_2_UUID); + + Map<String, MemberSubscriptionAndAssignmentImpl> members = new HashMap<>(); members.put(MEMBER_A, new MemberSubscriptionAndAssignmentImpl( Optional.empty(), Optional.empty(), - Set.of(TOPIC_1_UUID, TOPIC_2_UUID), Review Comment: I deliberately initialized it as a `LinkedHashSet` because I wanted ordering of topics, so that I can write an assert for the expected assignment. Hence, I had to make this change. -- 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