Fix flaky test in ee/spec/lib/gitlab/geo/geo_tasks_spec.rb
What does this MR do and why?
This MR fixes the flaky test described in #463718.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related issues
Related to #463718