Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao committed Jul 25, 2023
1 parent e34f8b8 commit 8140c3a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ public void testLookupTopicNotExist() throws Exception {
doReturn(uri).when(uriInfo).getRequestUri();
doReturn(true).when(config).isAuthorizationEnabled();

BrokerService brokerService = pulsar.getBrokerService();
doReturn(CompletableFuture.completedFuture(false))
.when(brokerService).isAllowAutoTopicCreationAsync(any());
NamespaceService namespaceService = pulsar.getNamespaceService();
CompletableFuture<Boolean> future = new CompletableFuture<>();
future.complete(false);
Expand Down

0 comments on commit 8140c3a

Please sign in to comment.