Skip to content

Commit

Permalink
fix test style
Browse files Browse the repository at this point in the history
  • Loading branch information
scwlkq committed Mar 9, 2024
1 parent 6d4a283 commit 6561d69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RocketmqBrokerCheckTest {
@BeforeEach
public void init() {
HealthCheckObjectConfig config = new HealthCheckObjectConfig();
config.getRocketmqConfig().setBrokerUrl("127.0.0.1:10911");
config.getRocketmqProperties().setBrokerUrl("127.0.0.1:10911");
config.setRequestTimeoutMillis(1000L);
rocketmqCheck = new Rocketmq4BrokerCheck(config);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RocketmqNameserverCheckTest {
@BeforeEach
public void init() {
HealthCheckObjectConfig config = new HealthCheckObjectConfig();
config.getRocketmqConfig().setNameServerUrl("127.0.0.1:9876");
config.getRocketmqProperties().setNamesrvAddr("127.0.0.1:9876");
config.setRequestTimeoutMillis(1000L);
rocketmqCheck = new Rocketmq4NameServerCheck(config);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class RocketmqTopicCheckTest {
@BeforeEach
public void init() throws InterruptedException {
HealthCheckObjectConfig config = new HealthCheckObjectConfig();
config.getRocketmqConfig().setBrokerUrl("127.0.0.1:10911");
config.getRocketmqConfig().setNameServerUrl("127.0.0.1:9876");
config.getRocketmqProperties().setBrokerUrl("127.0.0.1:10911");
config.getRocketmqProperties().setNamesrvAddr("127.0.0.1:9876");
config.setRequestTimeoutMillis(1000000L);
rocketmqCheck = new Rocketmq4TopicCheck(config);
}
Expand Down

0 comments on commit 6561d69

Please sign in to comment.