Skip to content

Commit

Permalink
fixit
Browse files Browse the repository at this point in the history
  • Loading branch information
shalk committed Dec 31, 2024
1 parent 400f3f5 commit b4c3dbe
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,9 @@ void redirectToSecuredCopiesAuthHeader() throws Exception {

@ParameterizedTest
@CsvSource({"/error,500", "/client-error,400"})
void errorSpan(String path, int resposeCode) {
void errorSpan(String path, int responseCode) {
String method = "GET";
URI uri = resolveAddress("/error");
URI uri = resolveAddress(path);

testing.runWithSpan(
"parent",
Expand All @@ -458,7 +458,9 @@ void errorSpan(String path, int resposeCode) {
trace -> {
trace.hasSpansSatisfyingExactly(
span -> span.hasName("parent").hasKind(SpanKind.INTERNAL).hasNoParent(),
span -> assertClientSpan(span, uri, method, 500, null).hasParent(trace.getSpan(0)),
span ->
assertClientSpan(span, uri, method, responseCode, null)
.hasParent(trace.getSpan(0)),
span -> assertServerSpan(span).hasParent(trace.getSpan(1)));
});
}
Expand Down

0 comments on commit b4c3dbe

Please sign in to comment.