Skip to content

Commit

Permalink
increased polling time, starting container manually
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Dec 10, 2024
1 parent 347ef42 commit 61b55bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ import com.agorapulse.worker.tck.executor.AbstractJobExecutorSpec
import com.agorapulse.worker.tck.executor.JobExecutorEventCollector
import io.micronaut.context.ApplicationContext
import org.testcontainers.containers.GenericContainer
import org.testcontainers.spock.Testcontainers
import spock.lang.Retry
import spock.lang.Shared

@Retry(delay = 500)
@Testcontainers
class RedisJobExecutorSpec extends AbstractJobExecutorSpec {

@Shared
Expand All @@ -41,6 +39,10 @@ class RedisJobExecutorSpec extends AbstractJobExecutorSpec {

@SuppressWarnings('FactoryMethodName')
protected ApplicationContext buildContext(JobQueues queues) {
if (!redis.running) {
redis.start()
}

ApplicationContext ctx = ApplicationContext
.builder(
'redis.uri': "redis://$redis.host:${redis.getMappedPort(6379)}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ abstract class AbstractJobExecutorSpec extends Specification {
public static final long LONG_RUNNING_JOB_DURATION = 500

private final PollingConditions conditions = new PollingConditions(
timeout: 30,
timeout: 60,
initialDelay: 5
)

Expand Down

0 comments on commit 61b55bd

Please sign in to comment.