Commit c3ff1702 authored by Kamil Trzciński's avatar Kamil Trzciński

Fix failure

parent e8f37eef
...@@ -119,7 +119,7 @@ describe Ci::Build do ...@@ -119,7 +119,7 @@ describe Ci::Build do
subject { described_class.with_security_reports } subject { described_class.with_security_reports }
context 'when build has a security report' do context 'when build has a security report' do
let!(:build) { create(:ee_ci_build, :success, :security_reports) } let!(:build) { create(:ee_ci_build, :success, :sast) }
it 'selects the build' do it 'selects the build' do
is_expected.to eq([build]) is_expected.to eq([build])
...@@ -135,7 +135,7 @@ describe Ci::Build do ...@@ -135,7 +135,7 @@ describe Ci::Build do
end end
context 'when there are multiple builds with security reports' do context 'when there are multiple builds with security reports' do
let!(:builds) { create_list(:ee_ci_build, 5, :success, :security_reports) } let!(:builds) { create_list(:ee_ci_build, 5, :success, :sast) }
it 'does not execute a query for selecting job artifacts one by one' do it 'does not execute a query for selecting job artifacts one by one' do
recorded = ActiveRecord::QueryRecorder.new do recorded = ActiveRecord::QueryRecorder.new do
......
...@@ -195,7 +195,7 @@ describe Ci::Pipeline do ...@@ -195,7 +195,7 @@ describe Ci::Pipeline do
context 'when retried build has security reports' do context 'when retried build has security reports' do
before do before do
create(:ee_ci_build, :retried, :security_reports, pipeline: pipeline, project: project) create(:ee_ci_build, :retried, :sast, pipeline: pipeline, project: project)
end end
let(:pipeline) { create(:ci_pipeline, :success, project: project) } let(:pipeline) { create(:ci_pipeline, :success, project: project) }
......
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