Skip to content

Commit

Permalink
fix test with updateCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhabalia committed Jan 24, 2018
1 parent 6ef8f64 commit c919343
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ protected void resetConfig() {
this.conf.setActiveConsumerFailoverDelayTimeMillis(0);
this.conf.setDefaultNumberOfNamespaceBundles(1);
this.conf.setZookeeperServers("localhost:2181");
this.conf.setClusterName("mock");
}

protected final void internalSetup() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void setup() throws Exception {
adminUrl = new URL("http://127.0.0.1" + ":" + BROKER_WEBSERVICE_PORT);
admin = new PulsarAdmin(adminUrl, (Authentication) null);

admin.clusters().createCluster("usc", new ClusterData(adminUrl.toString()));
admin.clusters().updateCluster("usc", new ClusterData(adminUrl.toString()));
admin.properties().createProperty("prop",
new PropertyAdmin(Lists.newArrayList("appid1"), Sets.newHashSet("usc")));
} catch (Throwable t) {
Expand Down

0 comments on commit c919343

Please sign in to comment.