From 158c044328c23c835e351143108cdaa2423def1f Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Sun, 27 Dec 2020 13:27:21 -0700 Subject: [PATCH] Update test_sync --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ec627fe..a11ece2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -102,9 +102,9 @@ mod test { publ.send(TestMsg(20)).unwrap(); publ.send(TestMsg(30)).unwrap(); - assert_eq!(sub.try_recv(), Ok(TestMsg(10))); - assert_eq!(sub.try_recv(), Ok(TestMsg(20))); - assert_eq!(sub.try_recv(), Ok(TestMsg(30))); + assert_eq!(sub.recv_blocking(), Ok(TestMsg(10))); + assert_eq!(sub.recv_blocking(), Ok(TestMsg(20))); + assert_eq!(sub.recv_blocking(), Ok(TestMsg(30))); assert_eq!(sub.try_recv(), Err(RecvError::Empty)); }) .await