Skip to content

Commit 409407d

Browse files
committed
Fix mock zookeeper change (#1674)
fix mock zookeeper change (cherry picked from commit c43451a)
1 parent 0296b97 commit 409407d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/src/test/java/io/streamnative/pulsar/handlers/mqtt/base/MQTTProtocolHandlerTestBase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import static org.mockito.Mockito.spy;
1919
import com.google.common.base.Joiner;
2020
import com.google.common.collect.Sets;
21-
import com.google.common.util.concurrent.MoreExecutors;
2221
import io.netty.channel.EventLoopGroup;
2322
import io.streamnative.pulsar.handlers.mqtt.common.MQTTCommonConfiguration;
2423
import io.streamnative.pulsar.handlers.mqtt.common.utils.ConfigurationUtils;
@@ -415,7 +414,7 @@ protected void setupBrokerMocks(PulsarService pulsar) throws Exception {
415414
}
416415

417416
public static MockZooKeeper createMockZooKeeper() throws Exception {
418-
MockZooKeeper zk = MockZooKeeper.newInstance(MoreExecutors.newDirectExecutorService());
417+
MockZooKeeper zk = MockZooKeeper.newInstance();
419418
zk.setSessionId(-1);
420419
List<ACL> dummyAclList = new ArrayList<>(0);
421420

0 commit comments

Comments
 (0)