mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-12 08:00:07 +01:00
tests: (jwt_auth_to_layer) more information in case of falure
This commit is contained in:
parent
20f7eff01e
commit
a8ea0288cd
1 changed files with 2 additions and 2 deletions
|
|
@ -461,7 +461,7 @@ mod tests {
|
||||||
async fn jwt_auth_to_layer() {
|
async fn jwt_auth_to_layer() {
|
||||||
let auth1: JwtAuthorizer = JwtAuthorizer::from_secret("aaa");
|
let auth1: JwtAuthorizer = JwtAuthorizer::from_secret("aaa");
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
let layer = auth1.layer().await;
|
let layer = auth1.layer().await.unwrap();
|
||||||
assert!(layer.is_ok());
|
assert_eq!(1, layer.auths.len());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue