Skip to content

Commit

Permalink
[fix][test] Fix ReplicatorRateLimiterTest (apache#23369)
Browse files Browse the repository at this point in the history
  • Loading branch information
Demogorgon314 committed Sep 29, 2024
1 parent 950309b commit 5e832a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ public void testReplicatorRateLimiterByBytes() throws Exception {
}

private static Optional<DispatchRateLimiter> getRateLimiter(PersistentTopic topic) {
return getRateLimiter(topic);
return topic.getReplicators().values().stream().findFirst().map(Replicator::getRateLimiter).orElseThrow();
}

private static final Logger log = LoggerFactory.getLogger(ReplicatorRateLimiterTest.class);
Expand Down

0 comments on commit 5e832a1

Please sign in to comment.