Skip to content

Commit ce9ceaa

Browse files
committed
fix mock zookeeper change
1 parent 05a25d8 commit ce9ceaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import static org.mockito.ArgumentMatchers.any;
1717
import static org.mockito.Mockito.doReturn;
1818
import static org.mockito.Mockito.spy;
19+
1920
import com.google.common.base.Joiner;
2021
import com.google.common.collect.Sets;
21-
import com.google.common.util.concurrent.MoreExecutors;
2222
import io.netty.channel.EventLoopGroup;
2323
import io.streamnative.pulsar.handlers.mqtt.common.MQTTCommonConfiguration;
2424
import io.streamnative.pulsar.handlers.mqtt.common.utils.ConfigurationUtils;
@@ -424,7 +424,7 @@ protected void setupBrokerMocks(PulsarService pulsar) throws Exception {
424424
}
425425

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

0 commit comments

Comments
 (0)