Commit e631acb7 authored by Mark Lapierre's avatar Mark Lapierre

Wait for project deletion then continue tests

parent c6281efc
......@@ -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