Skip to content

Commit

Permalink
Attempt to fix flaky test MessageDispatchThrottlingTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Feb 8, 2025
1 parent f9aab2e commit e4f4689
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ protected void afterPulsarStart(PulsarService pulsar) throws Exception {
protected void restartBroker() throws Exception {
stopBroker();
startBroker();
if (pulsarClient == null) {
pulsarClient = newPulsarClient(lookupUrl.toString(), 0);
}
}

protected void stopBroker() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static <T> T[] merge(T[] first, T[] last) {
return result;
}

@BeforeClass
@BeforeClass(alwaysRun = true)
@Override
protected void setup() throws Exception {
AsyncTokenBucket.switchToConsistentTokensView();
Expand Down

0 comments on commit e4f4689

Please sign in to comment.