From 850fb8766fe3a2288e511f93d067ee33c463c622 Mon Sep 17 00:00:00 2001 From: Tyler Benson Date: Mon, 16 Mar 2020 14:25:25 -0700 Subject: [PATCH] Make Retrys consistent --- .../groovy/springdata/CouchbaseSpringTemplateTest.groovy | 2 +- .../dropwizard/src/test/groovy/DropwizardTest.groovy | 2 +- .../groovy/Elasticsearch6RestClientTest.groovy | 4 ++-- .../src/test/groovy/Elasticsearch5RestClientTest.groovy | 4 ++-- .../groovy/Elasticsearch6RestClientTest.groovy | 7 ++++--- .../src/test/groovy/Elasticsearch6RestClientTest.groovy | 4 ++-- .../groovy/Elasticsearch2NodeClientTest.groovy | 4 ++-- .../groovy/Elasticsearch2TransportClientTest.groovy | 4 ++-- .../src/test/groovy/Elasticsearch2NodeClientTest.groovy | 4 ++-- .../test/groovy/Elasticsearch2TransportClientTest.groovy | 4 ++-- .../src/test/groovy/Elasticsearch53NodeClientTest.groovy | 4 ++-- .../test/groovy/Elasticsearch53TransportClientTest.groovy | 4 ++-- .../src/test/groovy/Elasticsearch5NodeClientTest.groovy | 4 ++-- .../test/groovy/Elasticsearch5TransportClientTest.groovy | 4 ++-- .../src/test/groovy/Elasticsearch6NodeClientTest.groovy | 4 ++-- .../test/groovy/Elasticsearch6TransportClientTest.groovy | 4 ++-- .../jms/src/test/groovy/SpringListenerJMS1Test.groovy | 3 ++- .../test/groovy/datadog/smoketest/WildflySmokeTest.groovy | 2 +- .../datadog/trace/api/writer/DDAgentWriterTest.groovy | 8 +++----- 19 files changed, 38 insertions(+), 38 deletions(-) diff --git a/dd-java-agent/instrumentation/couchbase-2.0/src/test/groovy/springdata/CouchbaseSpringTemplateTest.groovy b/dd-java-agent/instrumentation/couchbase-2.0/src/test/groovy/springdata/CouchbaseSpringTemplateTest.groovy index 6db4e794b16..8ccbf038d99 100644 --- a/dd-java-agent/instrumentation/couchbase-2.0/src/test/groovy/springdata/CouchbaseSpringTemplateTest.groovy +++ b/dd-java-agent/instrumentation/couchbase-2.0/src/test/groovy/springdata/CouchbaseSpringTemplateTest.groovy @@ -14,7 +14,7 @@ import util.AbstractCouchbaseTest import static datadog.trace.agent.test.utils.TraceUtils.basicSpan import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace -@Retry(count = 10, delay = 5) +@Retry(count = 10, delay = 500) @Unroll class CouchbaseSpringTemplateTest extends AbstractCouchbaseTest { diff --git a/dd-java-agent/instrumentation/dropwizard/src/test/groovy/DropwizardTest.groovy b/dd-java-agent/instrumentation/dropwizard/src/test/groovy/DropwizardTest.groovy index 699e5594d58..cb397ad0aba 100644 --- a/dd-java-agent/instrumentation/dropwizard/src/test/groovy/DropwizardTest.groovy +++ b/dd-java-agent/instrumentation/dropwizard/src/test/groovy/DropwizardTest.groovy @@ -26,7 +26,7 @@ import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.REDIRE import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.SUCCESS // Work around for: address already in use -@Retry +@Retry(count = 5, delay = 100) class DropwizardTest extends HttpServerTest { @Override diff --git a/dd-java-agent/instrumentation/elasticsearch/rest-5/src/latestDepTest/groovy/Elasticsearch6RestClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/rest-5/src/latestDepTest/groovy/Elasticsearch6RestClientTest.groovy index 5f08e6ee920..25fcf899a4f 100644 --- a/dd-java-agent/instrumentation/elasticsearch/rest-5/src/latestDepTest/groovy/Elasticsearch6RestClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/rest-5/src/latestDepTest/groovy/Elasticsearch6RestClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -15,9 +14,10 @@ import org.elasticsearch.common.settings.Settings import org.elasticsearch.node.InternalSettingsPreparer import org.elasticsearch.node.Node import org.elasticsearch.transport.Netty4Plugin +import spock.lang.Retry import spock.lang.Shared -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch6RestClientTest extends AgentTestRunner { @Shared int httpPort diff --git a/dd-java-agent/instrumentation/elasticsearch/rest-5/src/test/groovy/Elasticsearch5RestClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/rest-5/src/test/groovy/Elasticsearch5RestClientTest.groovy index e07ff5cb534..cb74711d805 100644 --- a/dd-java-agent/instrumentation/elasticsearch/rest-5/src/test/groovy/Elasticsearch5RestClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/rest-5/src/test/groovy/Elasticsearch5RestClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -16,11 +15,12 @@ import org.elasticsearch.env.Environment import org.elasticsearch.node.Node import org.elasticsearch.node.internal.InternalSettingsPreparer import org.elasticsearch.transport.Netty3Plugin +import spock.lang.Retry import spock.lang.Shared import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch5RestClientTest extends AgentTestRunner { @Shared int httpPort diff --git a/dd-java-agent/instrumentation/elasticsearch/rest-6.4/src/latestDepTest/groovy/Elasticsearch6RestClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/rest-6.4/src/latestDepTest/groovy/Elasticsearch6RestClientTest.groovy index 320d148053f..729f02a307e 100644 --- a/dd-java-agent/instrumentation/elasticsearch/rest-6.4/src/latestDepTest/groovy/Elasticsearch6RestClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/rest-6.4/src/latestDepTest/groovy/Elasticsearch6RestClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -18,9 +17,10 @@ import org.elasticsearch.node.InternalSettingsPreparer import org.elasticsearch.node.Node import org.elasticsearch.plugins.Plugin import org.elasticsearch.transport.Netty4Plugin +import spock.lang.Retry import spock.lang.Shared -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch6RestClientTest extends AgentTestRunner { @Shared int httpPort @@ -125,6 +125,7 @@ class Elasticsearch6RestClientTest extends AgentTestRunner { } @Override - protected void registerDerivedNodeNameWithLogger(String nodeName) {} + protected void registerDerivedNodeNameWithLogger(String nodeName) { + } } } diff --git a/dd-java-agent/instrumentation/elasticsearch/rest-6.4/src/test/groovy/Elasticsearch6RestClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/rest-6.4/src/test/groovy/Elasticsearch6RestClientTest.groovy index 5f08e6ee920..25fcf899a4f 100644 --- a/dd-java-agent/instrumentation/elasticsearch/rest-6.4/src/test/groovy/Elasticsearch6RestClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/rest-6.4/src/test/groovy/Elasticsearch6RestClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -15,9 +14,10 @@ import org.elasticsearch.common.settings.Settings import org.elasticsearch.node.InternalSettingsPreparer import org.elasticsearch.node.Node import org.elasticsearch.transport.Netty4Plugin +import spock.lang.Retry import spock.lang.Shared -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch6RestClientTest extends AgentTestRunner { @Shared int httpPort diff --git a/dd-java-agent/instrumentation/elasticsearch/transport-2/src/latestDepTest/groovy/Elasticsearch2NodeClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/transport-2/src/latestDepTest/groovy/Elasticsearch2NodeClientTest.groovy index b98cb391389..b5f7da9f794 100644 --- a/dd-java-agent/instrumentation/elasticsearch/transport-2/src/latestDepTest/groovy/Elasticsearch2NodeClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/transport-2/src/latestDepTest/groovy/Elasticsearch2NodeClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -9,11 +8,12 @@ import org.elasticsearch.common.settings.Settings import org.elasticsearch.index.IndexNotFoundException import org.elasticsearch.node.Node import org.elasticsearch.node.NodeBuilder +import spock.lang.Retry import spock.lang.Shared import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch2NodeClientTest extends AgentTestRunner { public static final long TIMEOUT = 10000; // 10 seconds diff --git a/dd-java-agent/instrumentation/elasticsearch/transport-2/src/latestDepTest/groovy/Elasticsearch2TransportClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/transport-2/src/latestDepTest/groovy/Elasticsearch2TransportClientTest.groovy index a6e1a92783e..effadb10c67 100644 --- a/dd-java-agent/instrumentation/elasticsearch/transport-2/src/latestDepTest/groovy/Elasticsearch2TransportClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/transport-2/src/latestDepTest/groovy/Elasticsearch2TransportClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -12,11 +11,12 @@ import org.elasticsearch.index.IndexNotFoundException import org.elasticsearch.node.Node import org.elasticsearch.node.NodeBuilder import org.elasticsearch.transport.RemoteTransportException +import spock.lang.Retry import spock.lang.Shared import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch2TransportClientTest extends AgentTestRunner { public static final long TIMEOUT = 10000; // 10 seconds diff --git a/dd-java-agent/instrumentation/elasticsearch/transport-2/src/test/groovy/Elasticsearch2NodeClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/transport-2/src/test/groovy/Elasticsearch2NodeClientTest.groovy index a6ba7dd5f9a..3903b0e7b6b 100644 --- a/dd-java-agent/instrumentation/elasticsearch/transport-2/src/test/groovy/Elasticsearch2NodeClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/transport-2/src/test/groovy/Elasticsearch2NodeClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -9,11 +8,12 @@ import org.elasticsearch.common.settings.Settings import org.elasticsearch.index.IndexNotFoundException import org.elasticsearch.node.Node import org.elasticsearch.node.NodeBuilder +import spock.lang.Retry import spock.lang.Shared import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch2NodeClientTest extends AgentTestRunner { public static final long TIMEOUT = 10000; // 10 seconds diff --git a/dd-java-agent/instrumentation/elasticsearch/transport-2/src/test/groovy/Elasticsearch2TransportClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/transport-2/src/test/groovy/Elasticsearch2TransportClientTest.groovy index 68e415e212f..77317e729a7 100644 --- a/dd-java-agent/instrumentation/elasticsearch/transport-2/src/test/groovy/Elasticsearch2TransportClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/transport-2/src/test/groovy/Elasticsearch2TransportClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -13,11 +12,12 @@ import org.elasticsearch.index.IndexNotFoundException import org.elasticsearch.node.Node import org.elasticsearch.node.NodeBuilder import org.elasticsearch.transport.RemoteTransportException +import spock.lang.Retry import spock.lang.Shared import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch2TransportClientTest extends AgentTestRunner { public static final long TIMEOUT = 10000; // 10 seconds diff --git a/dd-java-agent/instrumentation/elasticsearch/transport-5.3/src/test/groovy/Elasticsearch53NodeClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/transport-5.3/src/test/groovy/Elasticsearch53NodeClientTest.groovy index 0b6c7b02de8..4d56e0aa35d 100644 --- a/dd-java-agent/instrumentation/elasticsearch/transport-5.3/src/test/groovy/Elasticsearch53NodeClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/transport-5.3/src/test/groovy/Elasticsearch53NodeClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -11,12 +10,13 @@ import org.elasticsearch.index.IndexNotFoundException import org.elasticsearch.node.InternalSettingsPreparer import org.elasticsearch.node.Node import org.elasticsearch.transport.Netty3Plugin +import spock.lang.Retry import spock.lang.Shared import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch53NodeClientTest extends AgentTestRunner { public static final long TIMEOUT = 10000; // 10 seconds diff --git a/dd-java-agent/instrumentation/elasticsearch/transport-5.3/src/test/groovy/Elasticsearch53TransportClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/transport-5.3/src/test/groovy/Elasticsearch53TransportClientTest.groovy index 3ff27985e07..7af49e52250 100644 --- a/dd-java-agent/instrumentation/elasticsearch/transport-5.3/src/test/groovy/Elasticsearch53TransportClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/transport-5.3/src/test/groovy/Elasticsearch53TransportClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -15,12 +14,13 @@ import org.elasticsearch.node.Node import org.elasticsearch.transport.Netty3Plugin import org.elasticsearch.transport.RemoteTransportException import org.elasticsearch.transport.client.PreBuiltTransportClient +import spock.lang.Retry import spock.lang.Shared import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch53TransportClientTest extends AgentTestRunner { public static final long TIMEOUT = 10000; // 10 seconds diff --git a/dd-java-agent/instrumentation/elasticsearch/transport-5/src/test/groovy/Elasticsearch5NodeClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/transport-5/src/test/groovy/Elasticsearch5NodeClientTest.groovy index 09897e36102..8db0d51ddfd 100644 --- a/dd-java-agent/instrumentation/elasticsearch/transport-5/src/test/groovy/Elasticsearch5NodeClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/transport-5/src/test/groovy/Elasticsearch5NodeClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -11,12 +10,13 @@ import org.elasticsearch.index.IndexNotFoundException import org.elasticsearch.node.Node import org.elasticsearch.node.internal.InternalSettingsPreparer import org.elasticsearch.transport.Netty3Plugin +import spock.lang.Retry import spock.lang.Shared import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch5NodeClientTest extends AgentTestRunner { public static final long TIMEOUT = 10000; // 10 seconds diff --git a/dd-java-agent/instrumentation/elasticsearch/transport-5/src/test/groovy/Elasticsearch5TransportClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/transport-5/src/test/groovy/Elasticsearch5TransportClientTest.groovy index 8209135dade..7c46480f2ff 100644 --- a/dd-java-agent/instrumentation/elasticsearch/transport-5/src/test/groovy/Elasticsearch5TransportClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/transport-5/src/test/groovy/Elasticsearch5TransportClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -15,12 +14,13 @@ import org.elasticsearch.node.internal.InternalSettingsPreparer import org.elasticsearch.transport.Netty3Plugin import org.elasticsearch.transport.RemoteTransportException import org.elasticsearch.transport.client.PreBuiltTransportClient +import spock.lang.Retry import spock.lang.Shared import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch5TransportClientTest extends AgentTestRunner { public static final long TIMEOUT = 10000; // 10 seconds diff --git a/dd-java-agent/instrumentation/elasticsearch/transport-6/src/test/groovy/Elasticsearch6NodeClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/transport-6/src/test/groovy/Elasticsearch6NodeClientTest.groovy index 63e54e51d1d..f5253943301 100644 --- a/dd-java-agent/instrumentation/elasticsearch/transport-6/src/test/groovy/Elasticsearch6NodeClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/transport-6/src/test/groovy/Elasticsearch6NodeClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -10,12 +9,13 @@ import org.elasticsearch.index.IndexNotFoundException import org.elasticsearch.node.InternalSettingsPreparer import org.elasticsearch.node.Node import org.elasticsearch.transport.Netty4Plugin +import spock.lang.Retry import spock.lang.Shared import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch6NodeClientTest extends AgentTestRunner { public static final long TIMEOUT = 10000; // 10 seconds diff --git a/dd-java-agent/instrumentation/elasticsearch/transport-6/src/test/groovy/Elasticsearch6TransportClientTest.groovy b/dd-java-agent/instrumentation/elasticsearch/transport-6/src/test/groovy/Elasticsearch6TransportClientTest.groovy index e1b869d034f..d82da2ce52a 100644 --- a/dd-java-agent/instrumentation/elasticsearch/transport-6/src/test/groovy/Elasticsearch6TransportClientTest.groovy +++ b/dd-java-agent/instrumentation/elasticsearch/transport-6/src/test/groovy/Elasticsearch6TransportClientTest.groovy @@ -1,4 +1,3 @@ -import com.anotherchrisberry.spock.extensions.retry.RetryOnFailure import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.utils.PortUtils import datadog.trace.api.DDSpanTypes @@ -14,12 +13,13 @@ import org.elasticsearch.node.Node import org.elasticsearch.transport.Netty4Plugin import org.elasticsearch.transport.RemoteTransportException import org.elasticsearch.transport.client.PreBuiltTransportClient +import spock.lang.Retry import spock.lang.Shared import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING -@RetryOnFailure(times = 3, delaySeconds = 1) +@Retry(count = 3, delay = 1000) class Elasticsearch6TransportClientTest extends AgentTestRunner { public static final long TIMEOUT = 10000; // 10 seconds diff --git a/dd-java-agent/instrumentation/jms/src/test/groovy/SpringListenerJMS1Test.groovy b/dd-java-agent/instrumentation/jms/src/test/groovy/SpringListenerJMS1Test.groovy index 9a089a8bd29..ba7aea2667e 100644 --- a/dd-java-agent/instrumentation/jms/src/test/groovy/SpringListenerJMS1Test.groovy +++ b/dd-java-agent/instrumentation/jms/src/test/groovy/SpringListenerJMS1Test.groovy @@ -14,7 +14,6 @@ * limitations under the License. */ - import datadog.trace.agent.test.AgentTestRunner import listener.Config import org.apache.activemq.ActiveMQMessageConsumer @@ -22,12 +21,14 @@ import org.apache.activemq.junit.EmbeddedActiveMQBroker import org.springframework.context.annotation.AnnotationConfigApplicationContext import org.springframework.jms.core.JmsTemplate import org.springframework.jms.listener.adapter.MessagingMessageListenerAdapter +import spock.lang.Retry import javax.jms.ConnectionFactory import static JMS1Test.consumerTrace import static JMS1Test.producerTrace +@Retry class SpringListenerJMS1Test extends AgentTestRunner { def "receiving message in spring listener generates spans"() { diff --git a/dd-smoke-tests/wildfly/src/test/groovy/datadog/smoketest/WildflySmokeTest.groovy b/dd-smoke-tests/wildfly/src/test/groovy/datadog/smoketest/WildflySmokeTest.groovy index 1d0d7b31fc9..6241fafed06 100644 --- a/dd-smoke-tests/wildfly/src/test/groovy/datadog/smoketest/WildflySmokeTest.groovy +++ b/dd-smoke-tests/wildfly/src/test/groovy/datadog/smoketest/WildflySmokeTest.groovy @@ -5,7 +5,7 @@ import okhttp3.Request import spock.lang.Retry import spock.lang.Shared -@Retry(delay = 20) +@Retry(delay = 1000) class WildflySmokeTest extends AbstractServerSmokeTest { @Shared diff --git a/dd-trace-core/src/test/groovy/datadog/trace/api/writer/DDAgentWriterTest.groovy b/dd-trace-core/src/test/groovy/datadog/trace/api/writer/DDAgentWriterTest.groovy index 9628ef8caef..610fdfecc3a 100644 --- a/dd-trace-core/src/test/groovy/datadog/trace/api/writer/DDAgentWriterTest.groovy +++ b/dd-trace-core/src/test/groovy/datadog/trace/api/writer/DDAgentWriterTest.groovy @@ -26,7 +26,8 @@ import static datadog.trace.common.writer.DDAgentWriter.DISRUPTOR_BUFFER_SIZE import static datadog.trace.core.SpanFactory.newSpanOf import static datadog.trace.core.serialization.MsgpackFormatWriter.MSGPACK_WRITER -@Timeout(20) +@Retry +@Timeout(10) class DDAgentWriterTest extends DDSpecification { def phaser = new Phaser() @@ -401,7 +402,7 @@ class DDAgentWriterTest extends DDSpecification { 1 * monitor.onShutdown(writer, true) } - @Retry(delay = 10) + @Retry(delay = 500) // if execution is too slow, the http client timeout may trigger. def "slow response test"() { def numWritten = 0 @@ -419,9 +420,6 @@ class DDAgentWriterTest extends DDSpecification { def agent = httpServer { handlers { put("v0.4/traces") { - // DDApi sniffs for end point existence, so respond quickly the first time - // then slowly thereafter - responseSemaphore.acquire() try { response.status(200).send()