Update test_sync

This commit is contained in:
Alex Mikhalev 2020-12-27 13:27:21 -07:00
parent 8ecc0acf73
commit 158c044328

View File

@ -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