UladzislauBlok commented on code in PR #22778:
URL: https://github.com/apache/kafka/pull/22778#discussion_r3660216860


##########
streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/IQv2EndpointToPartitionsIntegrationTest.java:
##########
@@ -175,69 +183,68 @@ public void 
shouldGetCorrectHostPartitionInformation(final String groupProtocolC
                     }, TestUtils.DEFAULT_MAX_WAIT_MS,
                             "Kafka Streams clients 1 and 2 never got metadata 
about standby tasks");
 
-                    waitForCondition(() -> 
streamsOne.metadataForAllStreamsClients().iterator().next().topicPartitions().size()
 == 2,
+                    waitForCondition(() -> 
streamsOne.metadataForAllStreamsClients().iterator().next().topicPartitions().size()
 == 4,
                             IntegrationTestUtils.DEFAULT_TIMEOUT,
                             () -> "Kafka Streams one didn't give up active 
tasks");
 
-                    final List<StreamsMetadata> allClientMetadataUpdated = new 
ArrayList<>(streamsTwo.metadataForAllStreamsClients());

Review Comment:
   Two threads have increased number of paths in test and it broke the rule:
   `NPath Complexity is 775 (max allowed is 500).`
   
   I had to move some assertions to dedicated methods (kept assertions the same 
generally) 



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

Reply via email to