Skip to content

Commit

Permalink
Bump up timeout in testTopicAnomalyFinder (linkedin#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
zornhsu committed Nov 15, 2021
1 parent 74105f3 commit 1290039
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -80,7 +80,7 @@ protected Map<String, Object> withConfigs() {

@Test
public void testTopicAnomalyFinder() {
KafkaCruiseControlIntegrationTestUtils.createTopic(broker(0).plaintextAddr(),
KafkaCruiseControlIntegrationTestUtils.createTopic(broker(0).plaintextAddr(),
new NewTopic(TOPIC0, PARTITION_COUNT, (short) 2));

waitForMetadataPropogates();
Expand All @@ -101,7 +101,7 @@ private void waitUntilNewReplicasAppearForTheTopic() {
List<List<Integer>> partitionReplicas = JsonPath.parse(replicasArray, _gsonJsonConfig)
.read("$.*", new TypeRef<>() { });
return partitionReplicas.stream().allMatch(i -> i.size() == EXPECTED_REPLICA_COUNT);
}, Duration.ofSeconds(200), Duration.ofSeconds(15), new AssertionError("Replica count not match"));
}, Duration.ofSeconds(800), Duration.ofSeconds(15), new AssertionError("Replica count not match"));
}

private void waitForMetadataPropogates() {
Expand Down

0 comments on commit 1290039

Please sign in to comment.