Commit c3279091 authored by Dan Davison's avatar Dan Davison

Merge branch '344222-wait-for-pipeline-creation' into 'master'

Wait a little longer for pipeline to be created

See merge request gitlab-org/gitlab!83223
parents c59e63c0 e40e2233
...@@ -58,9 +58,7 @@ module QA ...@@ -58,9 +58,7 @@ module QA
context 'when upstream project new tag pipeline finishes' do context 'when upstream project new tag pipeline finishes' do
it 'triggers pipeline in downstream project', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347998' do it 'triggers pipeline in downstream project', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347998' do
# Downstream project should have one pipeline at this time # Downstream project should have one pipeline at this time
unless downstream_project.pipelines.size == 1 Support::Waiter.wait_until { downstream_project.pipelines.size == 1 }
raise "[ERROR] Downstream project should have 1 pipeline - pipelines count #{downstream_project.pipelines.size}"
end
Resource::Tag.fabricate_via_api! do |tag| Resource::Tag.fabricate_via_api! do |tag|
tag.project = upstream_project tag.project = upstream_project
...@@ -79,7 +77,7 @@ module QA ...@@ -79,7 +77,7 @@ module QA
Page::Project::Menu.perform(&:click_ci_cd_pipelines) Page::Project::Menu.perform(&:click_ci_cd_pipelines)
# Downstream project must have 2 pipelines at this time # Downstream project must have 2 pipelines at this time
expect(downstream_project.pipelines.size).to eq(2), "There are currently #{downstream_project.pipelines.size} pipelines in downstream project." expect { downstream_project.pipelines.size }.to eventually_eq(2), "There are currently #{downstream_project.pipelines.size} pipelines in downstream project."
# expect new downstream pipeline to also succeed # expect new downstream pipeline to also succeed
Page::Project::Pipeline::Index.perform do |index| Page::Project::Pipeline::Index.perform do |index|
......
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