diff --git a/operator-framework/src/test/java/com/github/containersolutions/operator/EventSchedulerTest.java b/operator-framework/src/test/java/com/github/containersolutions/operator/EventSchedulerTest.java index f2a34f14c1..5b605b8732 100644 --- a/operator-framework/src/test/java/com/github/containersolutions/operator/EventSchedulerTest.java +++ b/operator-framework/src/test/java/com/github/containersolutions/operator/EventSchedulerTest.java @@ -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));