Skip to content

Commit

Permalink
chore(test): fix worker api
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed Mar 27, 2024
1 parent 672e8ba commit e921ec1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/io/kestra/plugin/redis/TriggerListTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import io.kestra.core.schedulers.AbstractScheduler;
import io.kestra.core.schedulers.DefaultScheduler;
import io.kestra.core.schedulers.SchedulerTriggerStateInterface;
import io.kestra.core.utils.IdUtils;
import io.kestra.core.utils.TestsUtils;
import io.micronaut.context.ApplicationContext;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
Expand Down Expand Up @@ -54,13 +55,13 @@ class TriggerListTest {
void flow() throws Exception {
CountDownLatch queueCount = new CountDownLatch(1);

Worker worker = new Worker(applicationContext, 8, null);
try (
AbstractScheduler scheduler = new DefaultScheduler(
this.applicationContext,
this.flowListenersService,
this.triggerState
);
Worker worker = applicationContext.createBean(Worker.class, IdUtils.create(), 8, null)
) {
AtomicReference<Execution> last = new AtomicReference<>();

Expand Down

0 comments on commit e921ec1

Please sign in to comment.