From 9cd63f6cf1bc6b3d6bc1d0e2788436e358e7f736 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 6 Apr 2022 15:39:30 +0200 Subject: [PATCH] Fix tests in oauth2 errors serialization --- crates/oauth2-types/src/errors.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/oauth2-types/src/errors.rs b/crates/oauth2-types/src/errors.rs index a2c403b6..1de8ed5c 100644 --- a/crates/oauth2-types/src/errors.rs +++ b/crates/oauth2-types/src/errors.rs @@ -357,7 +357,10 @@ mod tests { #[test] fn serialize_error() { - let expected = json!({"error": "invalid_grant"}); + let expected = json!({ + "error": "invalid_grant", + "error_description": "The provided access grant is invalid, expired, or revoked." + }); let actual = serde_json::to_value(InvalidGrant.into_response()).unwrap(); assert_eq!(expected, actual); }