use of zipkin2.storage.InMemoryStorage in project zipkin by openzipkin.
the class ITZipkinSelfTracing method assertQueryReturnsResults.
void assertQueryReturnsResults(QueryRequest.Builder builder, List<List<Span>> traces) throws IOException {
QueryRequest query = builder.endTs(System.currentTimeMillis()).lookback(DAY).limit(2).build();
assertThat(inMemoryStorage().getTraces(query).execute()).withFailMessage("Expected results from %s. Current traces: %s", query, traces).isNotEmpty();
}
Aggregations