From ec51de9c4c5caf86db693848bb01b37500a0546e Mon Sep 17 00:00:00 2001 From: Sarah Chen Date: Wed, 18 Dec 2024 13:19:23 -0600 Subject: [PATCH] Fix missing header maps --- .../okhttp-2/src/test/groovy/OkHttp2AsyncTest.groovy | 2 +- .../okhttp-3/src/test/groovy/OkHttp3AsyncTest.groovy | 2 +- .../src/test/groovy/client/VertxHttpClientForkedTest.groovy | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dd-java-agent/instrumentation/okhttp-2/src/test/groovy/OkHttp2AsyncTest.groovy b/dd-java-agent/instrumentation/okhttp-2/src/test/groovy/OkHttp2AsyncTest.groovy index d800ef19c14..8a48cd7adf8 100644 --- a/dd-java-agent/instrumentation/okhttp-2/src/test/groovy/OkHttp2AsyncTest.groovy +++ b/dd-java-agent/instrumentation/okhttp-2/src/test/groovy/OkHttp2AsyncTest.groovy @@ -55,7 +55,7 @@ abstract class OkHttp2AsyncTest extends OkHttp2Test { def captured = AgentTracer.noopSpan() try { TraceUtils.runUnderTrace("parent", { - doRequest(method, url, ["Datadog-Meta-Lang": "java"], "", { captured = AgentTracer.activeSpan() }) + doRequest(method, url, [["Datadog-Meta-Lang", "java"]], "", { captured = AgentTracer.activeSpan() }) }) } catch (Exception e) { assert error == true diff --git a/dd-java-agent/instrumentation/okhttp-3/src/test/groovy/OkHttp3AsyncTest.groovy b/dd-java-agent/instrumentation/okhttp-3/src/test/groovy/OkHttp3AsyncTest.groovy index cc7ded34d8e..a3a7e90a691 100644 --- a/dd-java-agent/instrumentation/okhttp-3/src/test/groovy/OkHttp3AsyncTest.groovy +++ b/dd-java-agent/instrumentation/okhttp-3/src/test/groovy/OkHttp3AsyncTest.groovy @@ -66,7 +66,7 @@ abstract class OkHttp3AsyncTest extends OkHttp3Test { def captured = AgentTracer.noopSpan() try { TraceUtils.runUnderTrace("parent", { - doRequest(method, url, ["Datadog-Meta-Lang": "java"], "", { captured = AgentTracer.activeSpan() }) + doRequest(method, url, [["Datadog-Meta-Lang", "java"]], "", { captured = AgentTracer.activeSpan() }) }) } catch (Exception e) { assert error == true diff --git a/dd-java-agent/instrumentation/vertx-web-4.0/src/test/groovy/client/VertxHttpClientForkedTest.groovy b/dd-java-agent/instrumentation/vertx-web-4.0/src/test/groovy/client/VertxHttpClientForkedTest.groovy index 7cd7e5fe293..eb5597027b6 100644 --- a/dd-java-agent/instrumentation/vertx-web-4.0/src/test/groovy/client/VertxHttpClientForkedTest.groovy +++ b/dd-java-agent/instrumentation/vertx-web-4.0/src/test/groovy/client/VertxHttpClientForkedTest.groovy @@ -91,7 +91,7 @@ class VertxHttpClientForkedTest extends HttpClientTest implements TestingNettyHt def "handle timeout"() { when: - def status = doRequest(method, url, [:], "", null, timeout) + def status = doRequest(method, url, [], "", null, timeout) then: status == 0