Skip to content

Commit

Permalink
Removed flickering part of getBundles test
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat committed Sep 12, 2016
1 parent 39b7407 commit ddd814a
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,16 +491,6 @@ public void testGetBundles() throws Exception {
"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
Expand Down

0 comments on commit ddd814a

Please sign in to comment.