Skip to content

Commit

Permalink
Include details on the latency trace if we fail an assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
deejgregor committed Mar 15, 2023
1 parent 271f98b commit 1e0cacf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ public void logEntryMustBeCorrectlyConvertedToLatencyTrace() {
// Then
assertEquals(2, latencyTraces.size());
latencyTraces.forEach(latencyTrace -> {
assertNotNull(latencyTrace.getTraceId());
assertEquals(GatewayOuterClass.TraceStatus.OK, latencyTrace.getStatusCode());
assertEquals(StringUtils.EMPTY, latencyTrace.getStatusMessage());
assertNotNull("trace ID not null in latencyTrace " + latencyTrace, latencyTrace.getTraceId());
assertEquals("trace status OK in latencyTrace " + latencyTrace, GatewayOuterClass.TraceStatus.OK, latencyTrace.getStatusCode());
assertEquals("status message empty in latencyTrace " + latencyTrace, StringUtils.EMPTY, latencyTrace.getStatusMessage());
});
}
}

0 comments on commit 1e0cacf

Please sign in to comment.