Fix debugging assertion in redisson async test (#5770)
This commit is contained in:
parent
13a851ba24
commit
31f5734be6
|
@ -89,7 +89,9 @@ class RedissonAsyncClientTest extends AgentInstrumentationSpecification {
|
||||||
RFuture<Boolean> result = runWithSpan("parent") {
|
RFuture<Boolean> result = runWithSpan("parent") {
|
||||||
RFuture<Boolean> result = rSet.addAsync("s1")
|
RFuture<Boolean> result = rSet.addAsync("s1")
|
||||||
result.whenComplete({ res, throwable ->
|
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") {
|
runWithSpan("callback") {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue