Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
cb502b62
Commit
cb502b62
authored
Feb 26, 2018
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused method
parent
3e7f3bc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
app/models/ci/runner.rb
app/models/ci/runner.rb
+0
-4
spec/models/ci/runner_spec.rb
spec/models/ci/runner_spec.rb
+0
-18
No files found.
app/models/ci/runner.rb
View file @
cb502b62
...
@@ -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
...
...
spec/models/ci/runner_spec.rb
View file @
cb502b62
...
@@ -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'
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment