Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pmossman committed Jan 22, 2022
1 parent 9fcb2c7 commit 1f40d42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,7 @@ private void reportFailure(final ConnectionUpdaterInput connectionUpdaterInput)
new AttemptFailureInput(
connectionUpdaterInput.getJobId(),
connectionUpdaterInput.getAttemptId(),
FailureHelper.failureSummary(failures, partialSuccess)
)
);
FailureHelper.failureSummary(failures, partialSuccess)));
final int maxAttempt = configFetchActivity.getMaxAttempt().getMaxAttempt();
final int attemptNumber = connectionUpdaterInput.getAttemptNumber();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ public void setAttemptFailureWrapException() throws IOException {
Mockito.doThrow(new IOException())
.when(mJobPersistence).failAttempt(JOB_ID, ATTEMPT_ID);

Assertions.assertThatThrownBy(() -> jobCreationAndStatusUpdateActivity.attemptFailure(new AttemptFailureInput(JOB_ID, ATTEMPT_ID, ATTEMPT_FAILURE_SUMMARY)))
Assertions
.assertThatThrownBy(
() -> jobCreationAndStatusUpdateActivity.attemptFailure(new AttemptFailureInput(JOB_ID, ATTEMPT_ID, ATTEMPT_FAILURE_SUMMARY)))
.isInstanceOf(RetryableException.class)
.hasCauseInstanceOf(IOException.class);
}
Expand Down

0 comments on commit 1f40d42

Please sign in to comment.