go-redis / redismock

Redis client Mock
https://redis.uptrace.dev
BSD 2-Clause "Simplified" License
272 stars 59 forks source link

How to test blocking read operations #33

Open jaysonhurd opened 2 years ago

jaysonhurd commented 2 years ago

We are using a mock for XREADGROUP that appears to work except that our XREADGROUP is set to a blocking read which means it comes back to the blocking read and sits so the test fails. Is anyone running tests against blocking reads that could share some insight?