Skip to content

Commit

Permalink
refactor(broker): don't catch AssertionError
Browse files Browse the repository at this point in the history
Assertion error was only thrown in a test
  • Loading branch information
pihme committed Nov 1, 2021
1 parent 4480c52 commit b544ef8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private void proceedWithTransition(final ActorFuture<Void> future) {
nextStep
.transitionTo(context, term, role)
.onComplete((ok, error) -> onStepCompletion(future, error));
} catch (final Exception | AssertionError e) {
} catch (final Exception e) {
future.completeExceptionally(e);
}
});
Expand Down Expand Up @@ -134,7 +134,7 @@ private void proceedWithCleanup(
.prepareTransition(context, newTerm, newRole)
.onComplete(
(ok, error) -> onCleanupStepCompletion(future, error, newTerm, newRole));
} catch (final Exception | AssertionError e) {
} catch (final Exception e) {
future.completeExceptionally(e);
}
});
Expand Down

0 comments on commit b544ef8

Please sign in to comment.