Commit 0ecf0ff0 authored by Nailia Iskhakova's avatar Nailia Iskhakova Committed by Ramya Authappan

Add retry to wait for branch deletion

Attemp to fix a transient failure
Signed-off-by: default avatarNailia Iskhakova <niskhakova@gitlab.com>
parent 9316b664
......@@ -38,7 +38,11 @@ module QA
end.merge_via_api!
expect(merge_request[:state]).to eq('merged')
expect(project).not_to have_branch(branch)
# Retry in case the branch deletion takes more time to finish
QA::Support::Retrier.retry_on_exception(max_attempts: 5, sleep_interval: 5) do
expect(project).not_to have_branch(branch)
end
end
end
end
......
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