Browse Source

Fix debugging assertion in redisson async test (#5770)

Lauri Tulmin 2 years ago
parent
commit
31f5734be6

+ 3 - 1
instrumentation/redisson-3.0/javaagent/src/test/groovy/RedissonAsyncClientTest.groovy

@@ -89,7 +89,9 @@ class RedissonAsyncClientTest extends AgentInstrumentationSpecification {
     RFuture<Boolean> result = runWithSpan("parent") {
       RFuture<Boolean> result = rSet.addAsync("s1")
       result.whenComplete({ res, throwable ->
-        assert Span.current().getSpanContext().isValid(): "Callback should have a parent span."
+        if (!Span.current().getSpanContext().isValid()) {
+          new Exception("Callback should have a parent span.").printStackTrace()
+        }
         runWithSpan("callback") {
         }
       })