Fix codenarc errors

This commit is contained in:
Tyler Benson 2017-07-11 17:05:38 -07:00
parent 2d89ee0d54
commit 71ab8b2be1
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
package com.datadoghq.trace
class SpanFactory {
static def newSpanOf(long timestampMicro) {
static newSpanOf(long timestampMicro) {
def context = new DDSpanContext(
1L,
1L,
@ -14,7 +14,7 @@ class SpanFactory {
"fakeType",
Collections.emptyMap(),
null,
null);
null)
return new DDSpan(timestampMicro, context)
}
}

View File

@ -13,7 +13,7 @@ import static ratpack.groovy.test.embed.GroovyEmbeddedApp.ratpack
import static ratpack.http.MediaType.APPLICATION_JSON
class DDApiTest extends Specification {
static def mapper = new ObjectMapper()
static mapper = new ObjectMapper()
def "sending an empty list of traces returns no errors"() {
setup:
@ -74,7 +74,7 @@ class DDApiTest extends Specification {
client.sendTraces(traces)
requestContentType.get().type == APPLICATION_JSON
requestHeaders.get().get("Datadog-Meta-Lang") == "java"
requestHeaders.get().get("Datadog-Meta-Lang-Version") == System.getProperty("java.version", "unknown");
requestHeaders.get().get("Datadog-Meta-Lang-Version") == System.getProperty("java.version", "unknown")
requestHeaders.get().get("Datadog-Meta-Tracer-Version") == "unknown"
convert(requestBody.get()) == expectedRequestBody