Try cleaning more than once in test.

This commit is contained in:
Tyler Benson 2018-05-11 14:27:44 +10:00
parent 97b3e537bd
commit 6767785e0f
1 changed files with 3 additions and 2 deletions

View File

@ -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) {