Skip to content

Commit

Permalink
Enable ignored pipe test. (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihohit committed Jan 17, 2024
1 parent c6b368b commit 78faefd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions redis/tests/test_cluster_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ fn test_async_cluster_route_info_to_nodes() {
.unwrap();
}

#[ignore] // TODO Handle pipe where the keys do not all go to the same node
#[test]
fn test_async_cluster_basic_pipe() {
let cluster = TestClusterContext::new(3, 0);
Expand All @@ -198,11 +197,11 @@ fn test_async_cluster_basic_pipe() {
let mut connection = cluster.async_connection().await;
let mut pipe = redis::pipe();
pipe.add_command(cmd("SET").arg("test").arg("test_data").clone());
pipe.add_command(cmd("SET").arg("test3").arg("test_data3").clone());
pipe.add_command(cmd("SET").arg("{test}3").arg("test_data3").clone());
pipe.query_async(&mut connection).await?;
let res: String = connection.get("test").await?;
assert_eq!(res, "test_data");
let res: String = connection.get("test3").await?;
let res: String = connection.get("{test}3").await?;
assert_eq!(res, "test_data3");
Ok::<_, RedisError>(())
})
Expand Down

0 comments on commit 78faefd

Please sign in to comment.