Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ephraimfeldblum committed Nov 4, 2024
1 parent 3388925 commit a6e4203
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,7 @@ fn test_get_current_user() -> Result<()> {
}

#[test]
#[cfg(
feature = "min-redis-compatibility-version-7-4",
)]
#[cfg(feature = "min-redis-compatibility-version-7-4")]
fn test_set_acl_categories() -> Result<()> {
let port: u16 = 6490;
let _guards = vec![start_redis_server_with_module("acl", port)
Expand All @@ -347,9 +345,7 @@ fn test_set_acl_categories() -> Result<()> {
}

#[test]
#[cfg(
feature = "min-redis-compatibility-version-8-0",
)]
#[cfg(feature = "min-redis-compatibility-version-8-0")]
fn test_set_acl_categories_commands() -> Result<()> {
let port: u16 = 6490;
let _guards = vec![start_redis_server_with_module("acl", port)
Expand All @@ -358,7 +354,10 @@ fn test_set_acl_categories_commands() -> Result<()> {
get_redis_connection(port).with_context(|| "failed to connect to redis server")?;

let res: Vec<String> = redis::cmd("ACL").arg("CAT").arg("acl").query(&mut con)?;
assert!(res.contains(&"verify_key_access_for_user".to_owned()) && res.contains(&"get_current_user".to_owned()));
assert!(
res.contains(&"verify_key_access_for_user".to_owned())
&& res.contains(&"get_current_user".to_owned())
);

Ok(())
}
Expand Down

0 comments on commit a6e4203

Please sign in to comment.