Skip to content

Commit

Permalink
server: Make redis test_delay more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Mar 5, 2024
1 parent 88c0502 commit 770664d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/svix-server/src/queue/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,11 @@ pub mod tests {
.unwrap();
p.send(mt2.clone(), None).await.unwrap();

let recv2 = c.receive_all().await.unwrap().pop().unwrap();
let [recv2] = c.receive_all().await.unwrap().try_into().unwrap();
assert_eq!(*recv2.task, mt2);
recv2.ack().await.unwrap();

let recv1 = c.receive_all().await.unwrap().pop().unwrap();
let [recv1] = c.receive_all().await.unwrap().try_into().unwrap();
assert_eq!(*recv1.task, mt1);
recv1.ack().await.unwrap();
}
Expand Down

0 comments on commit 770664d

Please sign in to comment.