Skip to content

Commit

Permalink
Merge pull request #943 from benwaffle/fix-test
Browse files Browse the repository at this point in the history
Fix datadog test
  • Loading branch information
SimunKaracic committed Feb 24, 2021
2 parents a0f9827 + 6cbd2a6 commit cde44cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package kamon.datadog

import java.net.SocketException
import java.net.SocketTimeoutException
import java.time.{Duration, Instant}
import java.util.concurrent.TimeUnit

Expand Down Expand Up @@ -200,7 +200,7 @@ class DatadogSpanReporterSpec extends AbstractHttpReporter with Matchers with Re
val baseUrl = mockResponse("/test", new MockResponse().setStatus("HTTP/1.1 200 OK").setBody("OK").throttleBody(1, 6, TimeUnit.SECONDS))
applyConfig("kamon.datadog.trace.http.api-url = \"" + baseUrl + "\"")
reporter.reconfigure(Kamon.config())
assertThrows[SocketException] {
assertThrows[SocketTimeoutException] {
reporter.reportSpans(firstSpan)
}

Expand Down

0 comments on commit cde44cc

Please sign in to comment.