Try cleaning more than once in test.
This commit is contained in:
parent
97b3e537bd
commit
6767785e0f
|
|
@ -195,8 +195,9 @@ class ScopeManagerTest extends Specification {
|
|||
when:
|
||||
if (forceGC) {
|
||||
continuation = null // Continuation references also hold up traces.
|
||||
PendingTrace.awaitGC()
|
||||
((DDSpanContext) span.context()).trace.clean()
|
||||
while (!((DDSpanContext) span.context()).trace.clean()) {
|
||||
PendingTrace.awaitGC()
|
||||
}
|
||||
writer.waitForTraces(1)
|
||||
}
|
||||
if (autoClose) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue