提交 ddd814ac 编写于 作者: M Matteo Merli

Removed flickering part of getBundles test

上级 39b74071
......@@ -491,16 +491,6 @@ public class NamespacesTest extends MockedPulsarServiceBaseTest {
"test-bundled-namespace-1");
assertEquals(responseData, bundle);
mockZookKeeper.failNow(Code.SESSIONEXPIRED);
pulsar.getConfigurationCache().policiesCache().invalidate(
AdminResource.path("policies", this.testProperty, this.testLocalCluster, "test-bundled-namespace-1"));
try {
namespaces.getBundlesData(this.testProperty, this.testLocalCluster, "test-bundled-namespace-1");
fail("should have failed");
} catch (RestException e) {
assertEquals(e.getResponse().getStatus(), Status.INTERNAL_SERVER_ERROR.getStatusCode());
}
}
@Test
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册