Commit 1c040147 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Set retry metadata instead of running with around

parent fff3d03e
...@@ -201,8 +201,8 @@ RSpec.configure do |config| ...@@ -201,8 +201,8 @@ RSpec.configure do |config|
# Do not retry controller tests because rspec-retry cannot properly # Do not retry controller tests because rspec-retry cannot properly
# reset the controller which may contain data from last attempt. See # reset the controller which may contain data from last attempt. See
# https://gitlab.com/gitlab-org/gitlab/-/merge_requests/73360 # https://gitlab.com/gitlab-org/gitlab/-/merge_requests/73360
config.around(:each, type: :controller) do |example| config.prepend_before(:each, type: :controller) do |example|
example.run_with_retry(retry: 1) example.metadata[:retry] = 1
end end
config.exceptions_to_hard_fail = [DeprecationToolkitEnv::DeprecationBehaviors::SelectiveRaise::RaiseDisallowedDeprecation] config.exceptions_to_hard_fail = [DeprecationToolkitEnv::DeprecationBehaviors::SelectiveRaise::RaiseDisallowedDeprecation]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment