Skip to content

Commit 65cc113

Browse files
committed
fix
1 parent c9d7425 commit 65cc113

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

smoke-tests/src/test/java/io/opentelemetry/smoketest/appserver/AppServerTest.java

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)