Increase docker container timeout in tests to help with stability on underpowered machines running builds
MODIFY
dd-java-agent/instrumentation/rabbitmq-amqp-2.7/src/test/groovy/RabbitMQTest.groovy
dd-java-agent/instrumentation/rabbitmq-amqp-2.7/src/test/groovy/RabbitMQTest.groovy
@@ -22,6 +22,7 @@ import org.testcontainers.containers.GenericContainer
import spock.lang.Requires
import spock.lang.Shared
+import java.time.Duration
import java.util.concurrent.Phaser
import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace
@@ -56,6 +57,7 @@ class RabbitMQTest extends AgentTestRunner {
if ("true" != System.getenv("CI")) {
rabbbitMQContainer = new GenericContainer('rabbitmq:latest')
.withExposedPorts(defaultRabbitMQPort)
+ .withStartupTimeout(Duration.ofSeconds(120))
// .withLogConsumer { output ->
// print output.utf8String
// }

MODIFY
dd-java-agent/instrumentation/spymemcached-2.12/src/test/groovy/datadog/trace/instrumentation/spymemcached/SpymemcachedTest.groovy
dd-java-agent/instrumentation/spymemcached-2.12/src/test/groovy/datadog/trace/instrumentation/spymemcached/SpymemcachedTest.groovy
@@ -17,6 +17,7 @@ import org.testcontainers.containers.GenericContainer
import spock.lang.Requires
import spock.lang.Shared
+import java.time.Duration
import java.util.concurrent.ArrayBlockingQueue
import java.util.concurrent.BlockingQueue
import java.util.concurrent.ExecutorService
@@ -63,6 +64,7 @@ class SpymemcachedTest extends AgentTestRunner {
if ("true" != System.getenv("CI")) {
memcachedContainer = new GenericContainer('memcached:latest')
.withExposedPorts(defaultMemcachedPort)
+ .withStartupTimeout(Duration.ofSeconds(120))
memcachedContainer.start()
memcachedAddress = new InetSocketAddress(
memcachedContainer.containerIpAddress,

Increase docker container timeout in tests to help with stability on underpowered machines running builds