Made tests less brittle
This commit is contained in:
@@ -89,11 +89,13 @@ public class TraceWebAsyncClientAutoConfigurationTests {
|
||||
initialSpan.finish();
|
||||
}
|
||||
|
||||
then(this.accumulator
|
||||
.getSpans().stream().filter(span -> Span.Kind.CLIENT == span.kind())
|
||||
.findFirst().get()).matches(
|
||||
span -> span.duration() >= TimeUnit.MILLISECONDS.toMicros(100));
|
||||
then(this.tracer.tracer().currentSpan()).isNull();
|
||||
Awaitility.await().untilAsserted(() -> {
|
||||
then(this.accumulator
|
||||
.getSpans().stream().filter(span -> Span.Kind.CLIENT == span.kind())
|
||||
.findFirst().get()).matches(
|
||||
span -> span.duration() >= TimeUnit.MILLISECONDS.toMicros(100));
|
||||
then(this.tracer.tracer().currentSpan()).isNull();
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user