Skip to content

Commit c43451a

Browse files
authored
Fix mock zookeeper change (#1674)
fix mock zookeeper change
1 parent 05a25d8 commit c43451a

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

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

0 commit comments

Comments
 (0)