tests: (jwt_auth_to_layer) more information in case of falure

This commit is contained in:
cduvray 2023-08-20 08:04:30 +02:00
parent 20f7eff01e
commit a8ea0288cd

View file

@ -461,7 +461,7 @@ mod tests {
async fn jwt_auth_to_layer() {
let auth1: JwtAuthorizer = JwtAuthorizer::from_secret("aaa");
#[allow(deprecated)]
let layer = auth1.layer().await;
assert!(layer.is_ok());
let layer = auth1.layer().await.unwrap();
assert_eq!(1, layer.auths.len());
}
}