Skip to content

Commit 0cf015a

Browse files
coderzcTechnoboy-
authored andcommitted
Fix mock zookeeper change (#1674)
fix mock zookeeper change
1 parent 745ce37 commit 0cf015a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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;
@@ -423,7 +422,7 @@ protected void setupBrokerMocks(PulsarService pulsar) throws Exception {
423422
}
424423

425424
public static MockZooKeeper createMockZooKeeper() throws Exception {
426-
MockZooKeeper zk = MockZooKeeper.newInstance(MoreExecutors.newDirectExecutorService());
425+
MockZooKeeper zk = MockZooKeeper.newInstance();
427426
zk.setSessionId(-1);
428427
List<ACL> dummyAclList = new ArrayList<>(0);
429428

0 commit comments

Comments
 (0)