Skip to content
Snippets Groups Projects
Commit 17ab3d16 authored by Sanad Liaquat's avatar Sanad Liaquat
Browse files

Merge branch 'fix-pipeline-deletion-spec' into 'master'

Wait for pipeline finish before deletion

See merge request gitlab-org/gitlab!37637
parents 1b464470 9366cca6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -48,6 +48,12 @@ module QA
 
let(:pipeline_data_request) { Runtime::API::Request.new(api_client, "/projects/#{project.id}/pipelines/#{pipeline_id}") }
 
before do
Support::Waiter.wait_until(max_duration: 30, sleep_interval: 3) do
JSON.parse(get(pipeline_data_request.url))['status'] != 'pending'
end
end
after do
runner.remove_via_api!
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment