Skip to content

Commit

Permalink
Update tests/integration.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Gill <[email protected]>
  • Loading branch information
ndelvalle and gillchristian authored Jun 17, 2024
1 parent a3a92ea commit ec2fe63
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,12 @@ async fn connect() -> Result<(Connection, Connection), RedisError> {
async fn test_set_and_get() {
let (mut our_connection, mut their_connection) = connect().await.unwrap();

let pipeline = redis::pipe()
.cmd("SET")
.arg("key_1")
.arg(1)
.cmd("SET")
.arg("key_2")
.arg("Argentina")
.cmd("GET")
.arg("key_1")
.cmd("GET")
.arg("key_2")
.cmd("GET")
.arg("nonexistentkey")
.clone();
let mut pipeline = redis::pipe();

pipeline.cmd("SET").arg("key_1").arg(1);
pipeline.cmd("SET").arg("key_2").arg("Argentina");
pipeline.cmd("GET").arg("key_1").cmd("GET");
pipeline.arg("key_2").cmd("GET").arg("nonexistentkey");

let our_response: (Value, Value, Value, Value, Value) =
pipeline.clone().query(&mut our_connection).unwrap();
Expand Down

0 comments on commit ec2fe63

Please sign in to comment.