@@ -503,7 +503,7 @@ public void cancelRunning() throws InterruptedException {
503
503
final Queue <ChangedStateEvent > eventQueue = testStateListener .events (testId );
504
504
final List <ChangedStateEvent > events = new ArrayList <>(eventQueue );
505
505
506
- for (ChangedStateEvent event : events ) {
506
+ for (final ChangedStateEvent event : events ) {
507
507
if (event .isValue ()) {
508
508
log .info ("event = " + event );
509
509
}
@@ -549,7 +549,7 @@ public void resetStart() throws InterruptedException {
549
549
}
550
550
551
551
@ RepeatedTest (10 )
552
- @ Timeout (value = 10 ,
552
+ @ Timeout (value = 30 ,
553
553
unit = TimeUnit .SECONDS )
554
554
@ DisplayName ("Test that resetting a running workflow cancels the running workflow" )
555
555
public void resetCancelRunningWorkflow () throws InterruptedException {
@@ -578,7 +578,7 @@ public void resetCancelRunningWorkflow() throws InterruptedException {
578
578
final Queue <ChangedStateEvent > eventQueue = testStateListener .events (testId );
579
579
final List <ChangedStateEvent > events = new ArrayList <>(eventQueue );
580
580
581
- for (ChangedStateEvent event : events ) {
581
+ for (final ChangedStateEvent event : events ) {
582
582
if (event .isValue ()) {
583
583
log .info ("event = " + event );
584
584
}
@@ -667,7 +667,7 @@ public void updatedSignalReceivedWhileRunning() throws InterruptedException {
667
667
final Queue <ChangedStateEvent > eventQueue = testStateListener .events (testId );
668
668
final List <ChangedStateEvent > events = new ArrayList <>(eventQueue );
669
669
670
- for (ChangedStateEvent event : events ) {
670
+ for (final ChangedStateEvent event : events ) {
671
671
if (event .isValue ()) {
672
672
log .info ("event = " + event );
673
673
}
@@ -883,7 +883,7 @@ public static Stream<Arguments> getSetupFailingFailingActivityBeforeRun() {
883
883
884
884
@ ParameterizedTest
885
885
@ MethodSource ("getSetupFailingFailingActivityBeforeRun" )
886
- void testGetStuckBeforeRun (Thread mockSetup ) throws InterruptedException {
886
+ void testGetStuckBeforeRun (final Thread mockSetup ) throws InterruptedException {
887
887
mockSetup .run ();
888
888
Mockito .when (mConfigFetchActivity .getTimeToWait (Mockito .any ())).thenReturn (new ScheduleRetrieverOutput (
889
889
Duration .ZERO ));
@@ -973,7 +973,7 @@ public static Stream<Arguments> getSetupFailingFailingActivityAfterRun() {
973
973
974
974
@ ParameterizedTest
975
975
@ MethodSource ("getSetupFailingFailingActivityAfterRun" )
976
- void testGetStuckAfterRun (Consumer <ConnectionManagerWorkflow > signalSender , Thread mockSetup ) throws InterruptedException {
976
+ void testGetStuckAfterRun (final Consumer <ConnectionManagerWorkflow > signalSender , final Thread mockSetup ) throws InterruptedException {
977
977
mockSetup .run ();
978
978
979
979
final UUID testId = UUID .randomUUID ();
@@ -1055,7 +1055,7 @@ private static void startWorkflowAndWaitUntilReady(final ConnectionManagerWorkfl
1055
1055
while (!isReady ) {
1056
1056
try {
1057
1057
isReady = workflow .getState () != null ;
1058
- } catch (Exception e ) {
1058
+ } catch (final Exception e ) {
1059
1059
log .info ("retrying..." );
1060
1060
Thread .sleep (100 );
1061
1061
}
0 commit comments