Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unit_tests/test_pubsub: reset
PubSub.ID_KEY
value
Somehow after changing version of `fakeredis`, redis mock stays the same for all the unit tests even if `mock_pubsub` fixture has the default scope `function`. That's why value of `PubSub._redis.ID_KEY` becomes global among all the tests and `pubsub.subscribe` increments it based on the value from the previous test run. Fix the issue by resetting `ID_KEY` value to get subscription ID starting from 1 in `test_subscribe_multiple_channels`. Signed-off-by: Jeny Sadadia <[email protected]>
- Loading branch information