Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Aug 15, 2024
1 parent 6e4a94f commit 1bd3f08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redis/tests/test_cluster_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2400,7 +2400,7 @@ mod cluster_async {
.block_on(cmd.query_async::<_, Vec<String>>(&mut connection))
.unwrap_err();
assert!(
matches!(result.kind(), ErrorKind::ClusterConnectionNotFound)
matches!(result.kind(), ErrorKind::ConnectionNotFoundForRoute)
|| result.is_connection_dropped()
);
}
Expand Down Expand Up @@ -4031,7 +4031,7 @@ mod cluster_async {
handler: _handler,
..
} = MockEnv::with_client_builder(
ClusterClient::builder(vec![&*format!("redis://{name}")]),
ClusterClient::builder(vec![&*format!("redis://{name}")]).retries(1),
name,
move |received_cmd: &[u8], _| {
let slots_config_vec = vec![
Expand Down Expand Up @@ -4071,7 +4071,7 @@ mod cluster_async {
let res_err = res.unwrap_err();
assert_eq!(
res_err.kind(),
ErrorKind::ClusterConnectionNotFound,
ErrorKind::ConnectionNotFoundForRoute,
"{:?}",
res_err
);
Expand Down

0 comments on commit 1bd3f08

Please sign in to comment.