Fix cache poisoning causing pipeline_schedule_policy_spec.rb to fail
What does this MR do and why?
The introduction of the protected branch caching via the
hash_based_cache_for_protected_branches
feature flag could cause
spec/policies/ci/pipeline_schedule_policy_spec.rb
to fail since the
protected branch cache might have the wrong values.
To fix this particular issue, clean the Redis cache in the spec.
Closes #371929 (closed)
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.
Edited by Stan Hu