File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
smoke-tests/src/test/java/io/opentelemetry/smoketest/appserver Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -176,18 +176,14 @@ void testRequestWithError() {
176176
177177 assertThat (response .status ().code ()).isEqualTo (500 );
178178
179- testing ()
180- .waitAndAssertTraces (
181- trace ->
182- trace .hasSpansSatisfyingExactly (
183- span ->
184- assertServerSpan (span , path )
185- .hasEventsSatisfyingExactly (
186- event ->
187- event .hasAttributesSatisfying (
188- equalTo (
189- AttributeKey .stringKey ("exception.message" ),
190- "This is expected" )))));
179+ getAndAssertServerSpan (
180+ span ->
181+ assertServerSpan (span , path )
182+ .hasEventsSatisfyingExactly (
183+ event ->
184+ event .hasAttributesSatisfying (
185+ equalTo (
186+ AttributeKey .stringKey ("exception.message" ), "This is expected" ))));
191187 }
192188
193189 @ Test
You can’t perform that action at this time.
0 commit comments