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
  • Loading branch information
coderzc authored and Technoboy- committed Mar 6, 2025
1 parent 4cdb93b commit 321209c
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.MQTTCommonConfiguration;
import io.streamnative.pulsar.handlers.mqtt.utils.ConfigurationUtils;
Expand Down Expand Up @@ -419,7 +418,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 321209c

Please sign in to comment.