Fix flaky test
What does this MR do and why?
Fixes the flaky test outlined here: gitlab-org/quality/engineering-productivity/master-broken-incidents#6272 (closed)
Related to #461711 (closed)
Fixes the flaky test outlined here: gitlab-org/quality/engineering-productivity/master-broken-incidents#6272 (closed)
Related to #461711 (closed)