Unverified Commit 2bf03857 authored by david-perez's avatar david-perez Committed by GitHub
Browse files

Adjust error message when bodies don't match in `aws-smithy-protocol-test` (#3736)

The left parameter is the expected one, see

<https://github.com/smithy-lang/smithy-rs/blob/dc1ffb8a0d2cf9ba413d7c62097797863b12db07/rust-runtime/aws-smithy-protocol-test/src/lib.rs#L389-L394>.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent e3646b11
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
[package]
[package]
name = "aws-smithy-protocol-test"
name = "aws-smithy-protocol-test"
version = "0.60.7"
version = "0.60.8"
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
description = "A collection of library functions to validate HTTP requests against Smithy protocol tests."
description = "A collection of library functions to validate HTTP requests against Smithy protocol tests."
edition = "2021"
edition = "2021"
+1 −1
Original line number Original line Diff line number Diff line
@@ -84,7 +84,7 @@ pub enum ProtocolTestFailure {
    #[error("Header `{forbidden}` was forbidden but found: `{found}`")]
    #[error("Header `{forbidden}` was forbidden but found: `{found}`")]
    ForbiddenHeader { forbidden: String, found: String },
    ForbiddenHeader { forbidden: String, found: String },
    #[error(
    #[error(
        "body did not match. left=actual, right=expected\n{comparison:?} \n == hint:\n{hint}."
        "body did not match. left=expected, right=actual\n{comparison:?} \n == hint:\n{hint}."
    )]
    )]
    BodyDidNotMatch {
    BodyDidNotMatch {
        // the comparison includes colorized escapes. PrettyString ensures that even during
        // the comparison includes colorized escapes. PrettyString ensures that even during