@@ -34,7 +34,7 @@ class DefaultEventHandlerTest {
34
34
private static final Logger log = LoggerFactory .getLogger (DefaultEventHandlerTest .class );
35
35
36
36
public static final int FAKE_CONTROLLER_EXECUTION_DURATION = 250 ;
37
- public static final int SEPARATE_EXECUTION_TIMEOUT = 150 ;
37
+ public static final int SEPARATE_EXECUTION_TIMEOUT = 450 ;
38
38
private EventDispatcher eventDispatcherMock = mock (EventDispatcher .class );
39
39
private CustomResourceCache customResourceCache = new CustomResourceCache ();
40
40
private DefaultEventSourceManager defaultEventSourceManagerMock =
@@ -175,24 +175,24 @@ public void successfulExecutionResetsTheRetry() {
175
175
PostExecutionControl defaultDispatchControl = PostExecutionControl .defaultDispatch ();
176
176
177
177
when (eventDispatcherMock .handleExecution (any ()))
178
- .thenReturn (postExecutionControlWithException )
179
- .thenReturn (defaultDispatchControl );
178
+ .thenReturn (postExecutionControlWithException )
179
+ .thenReturn (defaultDispatchControl );
180
180
181
181
ArgumentCaptor <ExecutionScope > executionScopeArgumentCaptor =
182
- ArgumentCaptor .forClass (ExecutionScope .class );
182
+ ArgumentCaptor .forClass (ExecutionScope .class );
183
183
184
184
defaultEventHandlerWithRetry .handleEvent (event );
185
185
186
186
verify (eventDispatcherMock , timeout (SEPARATE_EXECUTION_TIMEOUT ).times (1 ))
187
- .handleExecution (any ());
187
+ .handleExecution (any ());
188
188
defaultEventHandlerWithRetry .handleEvent (event );
189
189
190
190
verify (eventDispatcherMock , timeout (SEPARATE_EXECUTION_TIMEOUT ).times (2 ))
191
- .handleExecution (any ());
191
+ .handleExecution (any ());
192
192
defaultEventHandlerWithRetry .handleEvent (event );
193
193
194
194
verify (eventDispatcherMock , timeout (SEPARATE_EXECUTION_TIMEOUT ).times (3 ))
195
- .handleExecution (executionScopeArgumentCaptor .capture ());
195
+ .handleExecution (executionScopeArgumentCaptor .capture ());
196
196
log .info ("Finished successfulExecutionResetsTheRetry" );
197
197
198
198
List <ExecutionScope > executionScopes = executionScopeArgumentCaptor .getAllValues ();
0 commit comments