Skip to content

Commit b4c3dbe

Browse files
committed
fixit
1 parent 400f3f5 commit b4c3dbe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/http/AbstractHttpClientTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,9 @@ void redirectToSecuredCopiesAuthHeader() throws Exception {
440440

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

447447
testing.runWithSpan(
448448
"parent",
@@ -458,7 +458,9 @@ void errorSpan(String path, int resposeCode) {
458458
trace -> {
459459
trace.hasSpansSatisfyingExactly(
460460
span -> span.hasName("parent").hasKind(SpanKind.INTERNAL).hasNoParent(),
461-
span -> assertClientSpan(span, uri, method, 500, null).hasParent(trace.getSpan(0)),
461+
span ->
462+
assertClientSpan(span, uri, method, responseCode, null)
463+
.hasParent(trace.getSpan(0)),
462464
span -> assertServerSpan(span).hasParent(trace.getSpan(1)));
463465
});
464466
}

0 commit comments

Comments
 (0)