Skip to content

Commit

Permalink
Added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Jun 26, 2024
1 parent 4de7c80 commit 527aa0c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions redis/tests/test_cluster_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,26 @@ mod cluster_async {
}
}

#[test]
fn test_async_cluster_refresh_slots_rate_limiter_skips_refresh() {
let ports = get_ports(3);
test_async_cluster_refresh_slots_rate_limiter_helper(
get_topology_with_majority(&ports),
ports,
true,
);
}

#[test]
fn test_async_cluster_refresh_slots_rate_limiter_does_refresh_when_wait_duration_passed() {
let ports = get_ports(3);
test_async_cluster_refresh_slots_rate_limiter_helper(
get_topology_with_majority(&ports),
ports,
false,
);
}

#[test]
fn test_async_cluster_ask_redirect() {
let name = "node";
Expand Down

0 comments on commit 527aa0c

Please sign in to comment.