diff --git a/tests/user/sign_in.rs b/tests/user/sign_in.rs index 23141e57..0d859409 100644 --- a/tests/user/sign_in.rs +++ b/tests/user/sign_in.rs @@ -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), } }