Skip to content

Commit b0a16dd

Browse files
authored
fix: minor improvements on tests (#640)
1 parent 7fec740 commit b0a16dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/DefaultEventHandlerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void schedulesAnEventRetryOnException() {
101101
}
102102

103103
@Test
104-
public void executesTheControllerInstantlyAfterErrorIfEventsBuffered() {
104+
public void executesTheControllerInstantlyAfterErrorIfNewEventsReceived() {
105105
Event event = prepareCREvent();
106106
TestCustomResource customResource = testCustomResource();
107107
overrideData(event.getRelatedCustomResourceID(), customResource);
@@ -114,7 +114,7 @@ public void executesTheControllerInstantlyAfterErrorIfEventsBuffered() {
114114

115115
// start processing an event
116116
defaultEventHandlerWithRetry.handleEvent(event);
117-
// buffer another event
117+
// handle another event
118118
defaultEventHandlerWithRetry.handleEvent(event);
119119

120120
ArgumentCaptor<ExecutionScope> executionScopeArgumentCaptor =
@@ -180,7 +180,7 @@ public void scheduleTimedEventIfInstructedByPostExecutionControl() {
180180
}
181181

182182
@Test
183-
public void reScheduleOnlyIfNotExecutedBufferedEvents() {
183+
public void reScheduleOnlyIfNotExecutedEventsReceivedMeanwhile() {
184184
var testDelay = 10000L;
185185
when(eventDispatcherMock.handleExecution(any()))
186186
.thenReturn(PostExecutionControl.defaultDispatch().withReSchedule(testDelay));

0 commit comments

Comments
 (0)