summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-05 21:15:39 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-05 21:15:39 +0000
commitb7d0ee2a31d4d8b8037c07cb1df7c123d2e754b5 (patch)
treebcf64595feae95589ab1df153721c8371add34a2 /qa
parent9c05a84cac5e6519ef545b14ead8989719c6f612 (diff)
downloadgitlab-ce-b7d0ee2a31d4d8b8037c07cb1df7c123d2e754b5.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/resource/project.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/qa/qa/resource/project.rb b/qa/qa/resource/project.rb
index 019617325e0..37ff2315329 100644
--- a/qa/qa/resource/project.rb
+++ b/qa/qa/resource/project.rb
@@ -123,12 +123,13 @@ module QA
resource_web_url(api_get)
rescue ResourceNotFoundError
response = super
+ return response unless template_name || import
# If a project is being imported, wait until it completes before we let the test continue.
# Otherwise we see Git repository errors
# See https://gitlab.com/gitlab-org/gitlab/-/issues/356101
- Support::Retrier.retry_until(max_duration: 60, sleep_interval: 5) do
- %w[none finished].include?(reload!.api_resource[:import_status])
+ Support::Retrier.retry_until(max_duration: 60, sleep_interval: 5, retry_on_exception: true) do
+ reload!.api_resource[:import_status] == "finished"
end
response