File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
pulsar-broker/src/test/java/org/apache/pulsar/broker/service Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1724,6 +1724,8 @@ public CompletableFuture<org.apache.pulsar.client.api.Producer> createAsync() {
17241724
17251725 @ Cleanup
17261726 PulsarAdmin admin = mockReplicationAdmin ();
1727+ PulsarService pulsar = brokerService .getPulsar ();
1728+ doReturn (admin ).when (pulsar ).getAdminClient ();
17271729 brokerService .getClusterAdmins ().put (remoteCluster , admin );
17281730 Optional <ClusterData > clusterData = brokerService .pulsar ().getPulsarResources ().getClusterResources ()
17291731 .getCluster (remoteCluster );
@@ -1781,6 +1783,7 @@ public void testClosingReplicationProducerTwice() throws Exception {
17811783
17821784 @ Cleanup
17831785 PulsarAdmin admin = mockReplicationAdmin ();
1786+ doReturn (admin ).when (pulsar ).getAdminClient ();
17841787 brokerService .getClusterAdmins ().put (remoteCluster , admin );
17851788 Optional <ClusterData > clusterData = brokerService .pulsar ().getPulsarResources ().getClusterResources ()
17861789 .getCluster (remoteCluster );
You can’t perform that action at this time.
0 commit comments