Fix flaky Redis-Sessions spec
What does this MR do and why?
Resolves the issue described in #348135 (closed) which was reported by Heinrich.
The Redis-Sessions multistore spec is flaky, depending on the order of the class vars cleanup.
This aims to fix it.
How to set up and validate locally
- bash:
rm config/redis.sessions.yml
. Ormv
. Otherwise, the spec will pass, as it would pick up the proper config. -
bin/spring rspec spec/lib/gitlab/redis/shared_state_spec.rb spec/lib/gitlab/redis/sessions_spec.rb
- will fail on themaster
- The same sequence will be green on this branch.
- Restore the file. Or reconfigure GDK which would do just that.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #348135 (closed)