Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix datadog test #943

Merged
merged 1 commit into from
Feb 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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