diff --git a/pulsar-metadata/src/test/java/org/apache/pulsar/metadata/bookkeeper/PulsarRegistrationClientTest.java b/pulsar-metadata/src/test/java/org/apache/pulsar/metadata/bookkeeper/PulsarRegistrationClientTest.java index 4dcbcda3d9078..5660b3518f1aa 100644 --- a/pulsar-metadata/src/test/java/org/apache/pulsar/metadata/bookkeeper/PulsarRegistrationClientTest.java +++ b/pulsar-metadata/src/test/java/org/apache/pulsar/metadata/bookkeeper/PulsarRegistrationClientTest.java @@ -363,6 +363,7 @@ public void testNetworkDelayWithBkZkManager() throws Throwable { final String zksConnectionString = zks.getConnectionString(); final String ledgersRoot = "/test/ledgers-" + UUID.randomUUID(); // prepare registration manager + @Cleanup ZooKeeper zk = new ZooKeeper(zksConnectionString, 5000, null); final ServerConfiguration serverConfiguration = new ServerConfiguration(); serverConfiguration.setZkLedgersRootPath(ledgersRoot);