1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-28 11:02:02 +03:00

Fix tests in oauth2 errors serialization

This commit is contained in:
Quentin Gliech
2022-04-06 15:39:30 +02:00
parent 8334a552b8
commit 9cd63f6cf1

View File

@ -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);
}