Commit 17ab3d16 authored by Sanad Liaquat's avatar Sanad Liaquat

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

Wait for pipeline finish before deletion

See merge request gitlab-org/gitlab!37637
parents 1b464470 9366cca6
......@@ -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
......
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