Closed x0ul closed 1 month ago
I am surprised this is the first time this was mentioned. Anyway, should be fixed.
Thanks so much for the quick fix, I seriously appreciate what this library has helped me do. Was removing this call to put_response
the main change?
yes, it is writing the response a few lines afterwards in the finally
section
Describe the bug
fakeredis-py returns unexpected values for
get
that appear to be left over results from the previous commandTo Reproduce Steps to reproduce the behavior:
Run the following test case with pytest
Expected behavior Test passes. This test passes with redis-py v5.0.7.
Screenshots N/A
Desktop (please complete the following information):
Linux 6.10.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 27 Jul 2024 16:49:55 +0000 x86_64 GNU/Linux
Additional context Doing another
get
(see commented-out line in test case above) seems to re-sync the connection and cause the test to pass.Upvote & Fund