Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoran10 committed Aug 9, 2024
1 parent 3dd33ad commit 58a0e5a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import com.google.common.collect.Sets;
import com.google.common.util.concurrent.MoreExecutors;
import io.netty.channel.EventLoopGroup;
import io.opentelemetry.api.OpenTelemetry;
import io.streamnative.pulsar.handlers.mqtt.MQTTCommonConfiguration;
import io.streamnative.pulsar.handlers.mqtt.utils.ConfigurationUtils;
import java.lang.reflect.Field;
Expand Down Expand Up @@ -405,10 +404,8 @@ protected PulsarService doStartBroker(ServiceConfiguration conf) throws Exceptio
protected void setupBrokerMocks(PulsarService pulsar) throws Exception {
// Override default providers with mocked ones
doReturn(mockBookKeeperClientFactory).when(pulsar).newBookKeeperClientFactory();
doReturn(new ZKMetadataStore(mockZooKeeper)).when(pulsar)
.createLocalMetadataStore(any(), OpenTelemetry.noop());
doReturn(new ZKMetadataStore(mockZooKeeper)).when(pulsar)
.createConfigurationMetadataStore(any(), OpenTelemetry.noop());
doReturn(new ZKMetadataStore(mockZooKeeper)).when(pulsar).createLocalMetadataStore(any(), any());
doReturn(new ZKMetadataStore(mockZooKeeper)).when(pulsar).createConfigurationMetadataStore(any(), any());

Supplier<NamespaceService> namespaceServiceSupplier = () -> spy(new NamespaceService(pulsar));
doReturn(namespaceServiceSupplier).when(pulsar).getNamespaceServiceProvider();
Expand Down

0 comments on commit 58a0e5a

Please sign in to comment.