Skip to content

Commit

Permalink
axum/extract/query: Add rejection message assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Dec 18, 2024
1 parent 5cdd8a4 commit fb68828
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions axum/src/extract/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ mod tests {

let res = client.get("/?n=hi").await;
assert_eq!(res.status(), StatusCode::BAD_REQUEST);
assert_eq!(res.text().await, "Failed to deserialize query string: invalid digit found in string");
}

#[test]
Expand Down

0 comments on commit fb68828

Please sign in to comment.