Skip to content

Commit

Permalink
Fix mock zookeeper change (#1674)
Browse files Browse the repository at this point in the history
fix mock zookeeper change

(cherry picked from commit c43451a)
  • Loading branch information
coderzc committed Feb 27, 2025
1 parent 0296b97 commit 409407d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
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 @@ -415,7 +414,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 409407d

Please # to comment.