Skip to content

Commit

Permalink
test description
Browse files Browse the repository at this point in the history
  • Loading branch information
csviri committed May 4, 2020
1 parent 0505718 commit 3190141
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ public void processesNewEventIfItIsReceivedAfterExecutionInError() {
assertThat(eventProcessingList.get(1).getException()).isNull();
}

/**
* Tests scenario when controller execution always fails (throws exception), but since the number of retries is limited
* it will end eventually with maximal number of processing attempts.
*/
@Test
public void numberOfRetriesCanBeLimited() {
doAnswer(this::exceptionInExecution).when(eventDispatcher).handleEvent(any(Watcher.Action.class), any(CustomResource.class));
Expand Down

0 comments on commit 3190141

Please sign in to comment.