From 770664d2a9832128609e4ef6146e565ffdeb785a Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 5 Mar 2024 12:08:51 +0100 Subject: [PATCH] server: Make redis test_delay more robust --- server/svix-server/src/queue/redis.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/svix-server/src/queue/redis.rs b/server/svix-server/src/queue/redis.rs index 8e2a048af..4814627e3 100644 --- a/server/svix-server/src/queue/redis.rs +++ b/server/svix-server/src/queue/redis.rs @@ -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(); }