Fixed flickering test (due to starting 0 in the traceid)

This commit is contained in:
Marcin Grzejszczak
2017-12-03 09:34:01 -05:00
committed by GitHub
parent d010229ca3
commit 8a190ddabc

View File

@@ -107,7 +107,7 @@ public class ZipkinTests extends AbstractIntegrationTest {
}
List<String> traceIdsNotFoundInZipkin(List<Span> spans, long traceId) {
String traceIdString = Long.toHexString(traceId);
String traceIdString = org.springframework.cloud.sleuth.Span.idToHex(traceId);
Optional<String> traceIds = spans.stream()
.map(Span::traceId)
.filter(traceIdString::equals)