Skip to content

Make Sidekiq Web UI test less flaky

Stan Hu requested to merge sh-fix-flaky-sidekiq-tests into master

What does this MR do and why?

One of the Sidekiq Web UI test attempts to test that the latency shown in the queues page is 0.0. However, if there is some slowness on the runner the latency could tick up to a second, causing the test to fail.

Avoid this flakiness by stubbing Time.now so that we guarantee that the latency will always remain at 0.

Relates to #460842 (closed)

Edited by Stan Hu

Merge request reports