fix: test case sign in invalid url
This commit is contained in:
parent
300e33671b
commit
9ed4eec4fe
|
|
@ -88,12 +88,7 @@ async fn sign_in_with_invalid_url() {
|
||||||
let c = localhost_client();
|
let c = localhost_client();
|
||||||
match c.sign_in_with_url(url_str).await {
|
match c.sign_in_with_url(url_str).await {
|
||||||
Ok(_) => panic!("should not be ok"),
|
Ok(_) => panic!("should not be ok"),
|
||||||
Err(e) => {
|
Err(e) => assert_eq!(e.code, ErrorCode::OAuthError),
|
||||||
assert_eq!(e.code, ErrorCode::UserUnAuthorized);
|
|
||||||
assert!(e
|
|
||||||
.message
|
|
||||||
.contains("invalid JWT: unable to parse or verify signature, token is expired by"));
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue