From 1980afb7d9c9e6b6ad0b2515699944fd37b134cf Mon Sep 17 00:00:00 2001 From: coderzc Date: Thu, 27 Feb 2025 12:31:20 +0800 Subject: [PATCH] fix mock zookeeper change --- .../pulsar/handlers/mqtt/base/MQTTProtocolHandlerTestBase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/src/test/java/io/streamnative/pulsar/handlers/mqtt/base/MQTTProtocolHandlerTestBase.java b/tests/src/test/java/io/streamnative/pulsar/handlers/mqtt/base/MQTTProtocolHandlerTestBase.java index 80fd1f21e..ac9a1d417 100644 --- a/tests/src/test/java/io/streamnative/pulsar/handlers/mqtt/base/MQTTProtocolHandlerTestBase.java +++ b/tests/src/test/java/io/streamnative/pulsar/handlers/mqtt/base/MQTTProtocolHandlerTestBase.java @@ -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; @@ -424,7 +423,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 dummyAclList = new ArrayList<>(0);