diff --git a/modules/itest/itest-core/src/test/java/com/enonic/xp/core/scheduler/SchedulerServiceImplTest.java b/modules/itest/itest-core/src/test/java/com/enonic/xp/core/scheduler/SchedulerServiceImplTest.java index c77353b3d68..dcc2d9bbda8 100644 --- a/modules/itest/itest-core/src/test/java/com/enonic/xp/core/scheduler/SchedulerServiceImplTest.java +++ b/modules/itest/itest-core/src/test/java/com/enonic/xp/core/scheduler/SchedulerServiceImplTest.java @@ -1,7 +1,6 @@ package com.enonic.xp.core.scheduler; import java.time.Instant; -import java.util.Set; import java.util.TimeZone; import org.junit.jupiter.api.BeforeEach; @@ -578,9 +577,6 @@ private IScheduledFuture mockFuture( final ScheduledJobName name ) when( future.getHandler() ).thenReturn( handler ); when( handler.getTaskName() ).thenReturn( name.getValue() ); - when( schedulerExecutorService.getAllFutures() ). - thenReturn( Set.of( name.getValue() ) ); - return future; } }