Skip to content

Commit

Permalink
Fix EventStreamUnmarshallerGeneratorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisanti committed Oct 17, 2022
1 parent 64c0280 commit 6e3e165
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ class EventStreamUnmarshallerGeneratorTest {
assert!(result.is_ok(), "expected ok, got: {:?}", result);
match expect_error(result.unwrap())$kindSuffix {
TestStreamErrorKind::Unhandled(err) => {
assert!(format!("{}", err).contains("message: \"unmodeled error\""));
let message = format!("{}", aws_smithy_types::error::display::DisplayErrorContext(&err));
let expected = "message: \"unmodeled error\"";
assert!(message.contains(expected), "Expected '{message}' to contain '{expected}'");
}
kind => panic!("expected generic error, but got {:?}", kind),
}
Expand Down

0 comments on commit 6e3e165

Please sign in to comment.