fix: test case sign in invalid url

This commit is contained in:
Zack Fu Zi Xiang 2024-03-08 17:58:07 +08:00
parent 300e33671b
commit 9ed4eec4fe
No known key found for this signature in database
1 changed files with 1 additions and 6 deletions

View File

@ -88,12 +88,7 @@ async fn sign_in_with_invalid_url() {
let c = localhost_client();
match c.sign_in_with_url(url_str).await {
Ok(_) => panic!("should not be ok"),
Err(e) => {
assert_eq!(e.code, ErrorCode::UserUnAuthorized);
assert!(e
.message
.contains("invalid JWT: unable to parse or verify signature, token is expired by"));
},
Err(e) => assert_eq!(e.code, ErrorCode::OAuthError),
}
}