@@ -214,9 +214,9 @@ public class FlowExecutionListTest {
214
214
stuck .setDefinition (new CpsFlowDefinition ("blockSynchronously 'stuck'" , false ));
215
215
var stuckBuild = stuck .scheduleBuild2 (0 ).waitForStart ();
216
216
await ().atMost (5 , TimeUnit .SECONDS ).until (() -> SynchronousBlockingStep .isStarted ("stuck" ));
217
- // Make FlowExecutionList$StepExecutionIteratorImpl.applyAll submit a task to the CpsVmExecutorService
217
+ // Make FlowExecutionList$StepExecutionIteratorImpl.acceptAll submit a task to the CpsVmExecutorService
218
218
// for stuck #1 that will never complete, so the resulting future will never complete.
219
- StepExecution .applyAll (e -> null );
219
+ StepExecution .acceptAll (e -> {} );
220
220
// Let notStuckBuild complete and clean up all references.
221
221
SemaphoreStep .success ("wait/1" , null );
222
222
r .waitForCompletion (notStuckBuild );
@@ -248,9 +248,9 @@ public class FlowExecutionListTest {
248
248
WeakReference <Object > notStuckBuildRef = new WeakReference <>(notStuckBuild );
249
249
var stuck = r .jenkins .getItemByFullName ("stuck" , WorkflowJob .class );
250
250
var stuckBuild = stuck .getBuildByNumber (1 );
251
- // Make FlowExecutionList$StepExecutionIteratorImpl.applyAll submit a task to the CpsVmExecutorService
251
+ // Make FlowExecutionList$StepExecutionIteratorImpl.acceptAll submit a task to the CpsVmExecutorService
252
252
// for stuck #1 that will never complete, so the resulting future will never complete.
253
- StepExecution .applyAll (e -> null );
253
+ StepExecution .acceptAll (e -> {} );
254
254
// Let notStuckBuild complete and clean up all references.
255
255
SemaphoreStep .success ("wait/1" , null );
256
256
r .waitForCompletion (notStuckBuild );
0 commit comments