Fix debugging assertion in redisson async test
MODIFY
instrumentation/redisson-3.0/javaagent/src/test/groovy/RedissonAsyncClientTest.groovy
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") {
}
})

Fix debugging assertion in redisson async test (#5770)