Resolve Failure in ee/spec/lib/gitlab/search/zoekt/client_spec.rb
What does this MR do and why?
I suspect that since we are asserting just after indexing the indexed files are not yet available, the specs are failing. I have added a sleep so the Zoekt webserver gets enough time to create the indexed files. CHanges in the ee/lib/gitlab/search/zoekt/client.rb
is just the refactoring. We don't need to pass the options because these are the same as in the default options.
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.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Related to #438684 (closed)
gitlab-org/quality/engineering-productivity/flaky-tests#3138 (closed)
gitlab-org/quality/engineering-productivity/flaky-tests#2050 (closed)
gitlab-org/quality/engineering-productivity/flaky-tests#589 (closed)
gitlab-org/quality/engineering-productivity/flaky-tests#375 (closed)