Skip to content

Commit

Permalink
Remove unnecessary sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Masahiro Sakamoto committed Jun 29, 2023
1 parent 94baf21 commit 04261c8
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,6 @@ public void testMsgRateExpired() throws Exception {
Awaitility.await().ignoreExceptions().timeout(10, TimeUnit.SECONDS)
.until(() -> pulsar.getBrokerService().getTopicStats().get(topicName).getSubscriptions().get(subName).getTotalMsgExpired() > 0);

Thread.sleep(2000);

Awaitility.await().ignoreExceptions().timeout(10, TimeUnit.SECONDS).until(() -> {
pulsar.getBrokerService().updateRates();
return pulsar.getBrokerService().getTopicStats().get(topicName).getSubscriptions().get(subName).getMsgRateExpired() < 0.001;
Expand Down

0 comments on commit 04261c8

Please sign in to comment.