Skip to content

Commit

Permalink
update exception assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydeluca committed Nov 1, 2024
1 parent 6b06a82 commit 1788d6f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ protected SpanDataAssert assertHandlerSpan(
span.hasName(testResource().getSimpleName() + "." + getEndpointName(endpoint))
.hasKind(INTERNAL);
if (EXCEPTION.equals(endpoint)) {
span.hasStatus(StatusData.error()).hasException(new Exception(EXCEPTION.getBody()));
span.hasStatus(StatusData.error())
.hasException(new IllegalStateException(EXCEPTION.getBody()));
}
return span;
}
Expand Down

0 comments on commit 1788d6f

Please sign in to comment.