diff options
Diffstat (limited to 'qa/qa/specs/features/api/3_create/merge_request/push_options_remove_source_branch_spec.rb')
-rw-r--r-- | qa/qa/specs/features/api/3_create/merge_request/push_options_remove_source_branch_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/qa/specs/features/api/3_create/merge_request/push_options_remove_source_branch_spec.rb b/qa/qa/specs/features/api/3_create/merge_request/push_options_remove_source_branch_spec.rb index d6bd668fa8a..bf2ecfdb513 100644 --- a/qa/qa/specs/features/api/3_create/merge_request/push_options_remove_source_branch_spec.rb +++ b/qa/qa/specs/features/api/3_create/merge_request/push_options_remove_source_branch_spec.rb @@ -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 |