From 064201c39ef0b0abf3bc2f4f602860fd6de4ed3a Mon Sep 17 00:00:00 2001 From: "brian.mulier" Date: Mon, 17 Feb 2025 23:42:23 +0100 Subject: [PATCH] fix(tests): increase timeout on JdbcServiceLivenessCoordinatorTest.taskResubmitSkipExecution --- .../runner/JdbcServiceLivenessCoordinatorTest.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/jdbc/src/test/java/io/kestra/jdbc/runner/JdbcServiceLivenessCoordinatorTest.java b/jdbc/src/test/java/io/kestra/jdbc/runner/JdbcServiceLivenessCoordinatorTest.java index dada1abeb2b..fa7f6a1671b 100644 --- a/jdbc/src/test/java/io/kestra/jdbc/runner/JdbcServiceLivenessCoordinatorTest.java +++ b/jdbc/src/test/java/io/kestra/jdbc/runner/JdbcServiceLivenessCoordinatorTest.java @@ -1,6 +1,7 @@ package io.kestra.jdbc.runner; import com.google.common.collect.ImmutableMap; +import io.kestra.core.junit.annotations.KestraTest; import io.kestra.core.models.conditions.ConditionContext; import io.kestra.core.models.executions.Execution; import io.kestra.core.models.executions.TaskRun; @@ -11,14 +12,7 @@ import io.kestra.core.queues.QueueFactoryInterface; import io.kestra.core.queues.QueueInterface; import io.kestra.core.repositories.LocalFlowRepositoryLoader; -import io.kestra.core.runners.RunContextFactory; -import io.kestra.core.runners.StandAloneRunner; -import io.kestra.core.runners.Worker; -import io.kestra.core.runners.WorkerJob; -import io.kestra.core.runners.WorkerTask; -import io.kestra.core.runners.WorkerTaskResult; -import io.kestra.core.runners.WorkerTrigger; -import io.kestra.core.runners.WorkerTriggerResult; +import io.kestra.core.runners.*; import io.kestra.core.services.SkipExecutionService; import io.kestra.core.tasks.test.SleepTrigger; import io.kestra.core.utils.Await; @@ -28,7 +22,6 @@ import io.kestra.plugin.core.flow.Sleep; import io.micronaut.context.ApplicationContext; import io.micronaut.context.annotation.Property; -import io.kestra.core.junit.annotations.KestraTest; import jakarta.inject.Inject; import jakarta.inject.Named; import org.junit.jupiter.api.BeforeAll; @@ -157,7 +150,7 @@ void taskResubmitSkipExecution() throws Exception { }); workerJobQueue.emit(workerTask); - boolean runningLatchAwait = runningLatch.await(2, TimeUnit.SECONDS); + boolean runningLatchAwait = runningLatch.await(10, TimeUnit.SECONDS); assertThat(runningLatchAwait, is(true)); worker.shutdown();