BigW Consortium Gitlab

Remove unused method

parent 3e7f3bc7
...@@ -170,10 +170,6 @@ module Ci ...@@ -170,10 +170,6 @@ module Ci
end end
end end
def defines_maximum_job_timeout?
!maximum_job_timeout.nil? && maximum_job_timeout > 0
end
private private
def cleanup_runner_queue def cleanup_runner_queue
......
...@@ -556,24 +556,6 @@ describe Ci::Runner do ...@@ -556,24 +556,6 @@ describe Ci::Runner do
end end
end end
describe '#defines_maximum_job_timeout?' do
context 'when maximum job timeout is specified' do
subject { create(:ci_runner, maximum_job_timeout: 1234) }
it 'should return true' do
expect(subject.defines_maximum_job_timeout?).to be_truthy
end
end
context 'when maximum job timeout is not specified' do
subject { create(:ci_runner) }
it 'should return false' do
expect(subject.defines_maximum_job_timeout?).to be_falsey
end
end
end
describe '.search' do describe '.search' do
let(:runner) { create(:ci_runner, token: '123abc', description: 'test runner') } let(:runner) { create(:ci_runner, token: '123abc', description: 'test runner') }
......
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