From f5f3386f79cae899c40ee981fdb7b40266832fc6 Mon Sep 17 00:00:00 2001 From: Nikolay Martynov Date: Thu, 13 Jun 2019 11:51:10 -0400 Subject: [PATCH] Make Akka client test more stable We already have a hack to wait for client span to close after the request because it is closed on separate thread. This patch extends that hack to handle cases when original request throws an exception. --- .../test/groovy/AkkaHttpClientInstrumentationTest.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dd-java-agent/instrumentation/akka-http-10.0/src/test/groovy/AkkaHttpClientInstrumentationTest.groovy b/dd-java-agent/instrumentation/akka-http-10.0/src/test/groovy/AkkaHttpClientInstrumentationTest.groovy index ff13ad89ca..3ae9770f32 100644 --- a/dd-java-agent/instrumentation/akka-http-10.0/src/test/groovy/AkkaHttpClientInstrumentationTest.groovy +++ b/dd-java-agent/instrumentation/akka-http-10.0/src/test/groovy/AkkaHttpClientInstrumentationTest.groovy @@ -23,8 +23,12 @@ class AkkaHttpClientInstrumentationTest extends HttpClientTest