From cadb47230b798feed7e20dfb9e274bb6cfa0f358 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Thu, 28 Sep 2023 16:57:22 +0300 Subject: [PATCH] fix test --- .../testing/junit/http/AbstractHttpServerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/http/AbstractHttpServerTest.java b/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/http/AbstractHttpServerTest.java index 58f7c565d0d3..01ded41360f9 100644 --- a/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/http/AbstractHttpServerTest.java +++ b/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/http/AbstractHttpServerTest.java @@ -571,7 +571,7 @@ protected void assertHighConcurrency(int count) { span -> assertHandlerSpan(span, "GET", endpoint).hasParent(trace.getSpan(1))); } - int parentIndex = spanAssertions.size() - 2; + int parentIndex = spanAssertions.size() - 1; spanAssertions.add( span -> assertIndexedControllerSpan(span, requestId)