Commit 134642c5 authored by drew cimino's avatar drew cimino

Remove unecessary specs

The logic for this was removed in 07c7ba1b
so there's no point in testing it anymore.
parent 50027303
......@@ -69,15 +69,4 @@ RSpec.describe Ci::StuckBuilds::DropRunningService do
end
end
end
context 'for deleted project' do
let(:status) { 'running' }
let(:updated_at) { 2.days.ago }
before do
job.project.update!(pending_delete: true)
end
it_behaves_like 'job is dropped with failure reason', 'stuck_or_timeout_failure'
end
end
......@@ -43,16 +43,6 @@ RSpec.describe Ci::StuckBuilds::DropScheduledService do
end
end
context 'for deleted project' do
let(:scheduled_at) { 2.days.ago }
before do
job.project.update!(pending_delete: true)
end
it_behaves_like 'job is dropped with failure reason', 'stale_schedule'
end
context 'when there are no stale scheduled builds' do
let(:job) { }
......
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