summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/api/4_verify/pipeline_deletion_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/specs/features/api/4_verify/pipeline_deletion_spec.rb')
-rw-r--r--qa/qa/specs/features/api/4_verify/pipeline_deletion_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/qa/specs/features/api/4_verify/pipeline_deletion_spec.rb b/qa/qa/specs/features/api/4_verify/pipeline_deletion_spec.rb
index a406fa409d5..567815858f3 100644
--- a/qa/qa/specs/features/api/4_verify/pipeline_deletion_spec.rb
+++ b/qa/qa/specs/features/api/4_verify/pipeline_deletion_spec.rb
@@ -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