Commit ad675c37 authored by Chloe Liu's avatar Chloe Liu

Merge branch 'ml-wait-for-project-deletion-then-continue-tests' into 'master'

Wait for project deletion then continue tests

See merge request gitlab-org/gitlab!82951
parents 4f9f1d07 e631acb7
......@@ -385,6 +385,18 @@ module QA
end
end
def remove_via_api!
super
Support::Retrier.retry_until(max_duration: 60, sleep_interval: 1, message: "Waiting for #{self.class.name} to be removed") do
!exists?
rescue InternalServerError
# Retry on transient errors that are likely to be due to race conditions between concurrent delete operations
# when parts of a resource are stored in multiple tables
false
end
end
protected
# Return subset of fields for comparing projects
......
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