end of day, enjoy the night

This commit is contained in:
Guillaume Polaert 2017-04-26 18:46:20 +02:00
parent 7e7700f1e2
commit bc8395d66c
1 changed files with 4 additions and 2 deletions

View File

@ -173,8 +173,7 @@ public class DDSpanBuilderTest {
@Test
public void shouldTrackAllSpanInTrace() {
ArrayList<DDSpan> spans = new ArrayList<DDSpan>();
ArrayList<DDSpan> spansClone = new ArrayList<DDSpan>();
ArrayList<DDSpan> spans = new ArrayList<>();
final int nbSamples = 10;
DDSpan root = (DDSpan) tracer.buildSpan("fake_O").start();
@ -189,7 +188,10 @@ public class DDSpanBuilderTest {
assertThat(spans.get((int) (Math.random() * nbSamples)).getTraces()).containsAll(spans);
root.finish();
//TODO Check order
//assertThat(root.getTraces()).containsExactly(spans)
spans.forEach(span -> assertThat(span.getDurationNano()).isNotNull());
spans.forEach(span -> assertThat(span.getDurationNano()).isNotZero());
}