Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
poorbarcode committed Jun 11, 2024
1 parent 4b5fb5d commit 3e061cc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ public void testValidateReplicationSettingsOnNamespace() throws Exception {
CompletableFuture<TopicExistsInfo> future = new CompletableFuture<>();
future.complete(TopicExistsInfo.notExists());
doReturn(future).when(namespaceService).checkTopicExists(any(TopicName.class));
doReturn(future).when(namespaceService).checkTopicExists(any(TopicName.class), anyBoolean());
CompletableFuture<Boolean> booleanFuture = new CompletableFuture<>();
booleanFuture.complete(false);
doReturn(future).when(namespaceService).checkNonPartitionedTopicExists(any(TopicName.class), anyBoolean());
destLookup.lookupTopicAsync(asyncResponse, TopicDomain.persistent.value(), property, cluster, ns2,
"invalid-localCluster", false, null, null);
verify(asyncResponse).resume(arg.capture());
Expand Down

0 comments on commit 3e061cc

Please sign in to comment.