Skip to content

Fix time-dependent test in spec/controllers/projects_controller_spec.rb

Stan Hu requested to merge sh-fix-projects-controller-rate-limiter-spec into master

What does this MR do and why?

This test may have been failing intermittently when the time approaches a minute interval, which causes the rate limit to expire, and allows the project export to proceed. Fix this by freezing the time so that this test is agnostic to the current time.

Relates to #382028 (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.

Edited by Stan Hu

Merge request reports

Loading