Create a spec helper to analyze tables in tests.
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Some of our rspec tests require the need to "ANALYZE" tables to make sure reltuples have been updated to get the correct count:
Occurrences I could find:
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/spec%2Ffeatures%2Fadmin%2Fdashboard_spec.rb#L20
Right now we are repeating the same piece of code across all such occurrences. We'd be able to refactor this a bit by moving this logic to a helper.
Edited by 🤖 GitLab Bot 🤖