MAde tests pass, fixed webclient support

This commit is contained in:
Marcin Grzejszczak
2017-11-15 11:51:24 +01:00
parent 7d93667dfa
commit a4dbfbee5f
3 changed files with 83 additions and 14 deletions

View File

@@ -111,8 +111,12 @@ public class MessagingApplicationTests extends AbstractIntegrationTest {
.stream()
.map(Span::toString)
.collect(Collectors.joining("\n")) + "\n]");
then(this.integrationTestSpanCollector.hashedSpans.stream()
.allMatch(span -> span.traceId().equals(traceIdHex))).describedAs("All spans have same trace id").isTrue();
then(this.integrationTestSpanCollector.hashedSpans
.stream()
.filter(span -> !span.traceId().equals(traceIdHex))
.collect(Collectors.toList()))
.describedAs("All spans have same trace id [" + traceIdHex + "]")
.isEmpty();
}
private void thenTheSpansHaveProperParentStructure() {