Skip to content

Commit

Permalink
fix mock zookeeper change
Browse files Browse the repository at this point in the history
  • Loading branch information
coderzc committed Feb 27, 2025
1 parent 05a25d8 commit ce9ceaa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;

import com.google.common.base.Joiner;
import com.google.common.collect.Sets;
import com.google.common.util.concurrent.MoreExecutors;
import io.netty.channel.EventLoopGroup;
import io.streamnative.pulsar.handlers.mqtt.common.MQTTCommonConfiguration;
import io.streamnative.pulsar.handlers.mqtt.common.utils.ConfigurationUtils;
Expand Down Expand Up @@ -424,7 +424,7 @@ protected void setupBrokerMocks(PulsarService pulsar) throws Exception {
}

public static MockZooKeeper createMockZooKeeper() throws Exception {
MockZooKeeper zk = MockZooKeeper.newInstance(MoreExecutors.newDirectExecutorService());
MockZooKeeper zk = MockZooKeeper.newInstance();
zk.setSessionId(-1);
List<ACL> dummyAclList = new ArrayList<>(0);

Expand Down

0 comments on commit ce9ceaa

Please sign in to comment.