BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d9251f2e
Commit
d9251f2e
authored
May 27, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs api/runners_spec.rb, api/v3/runners_spec.rb update_build_queue_service_spec.rb
parent
bbd4cd11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
runners_spec.rb
spec/requests/api/runners_spec.rb
+1
-1
update_build_queue_service_spec.rb
spec/services/ci/update_build_queue_service_spec.rb
+3
-0
No files found.
spec/requests/api/runners_spec.rb
View file @
d9251f2e
...
...
@@ -13,7 +13,7 @@ describe API::Runners do
let!
(
:shared_runner
)
{
create
(
:ci_runner
,
:instance
,
description:
'Shared runner'
)
}
let!
(
:project_runner
)
{
create
(
:ci_runner
,
:project
,
description:
'Project runner'
,
projects:
[
project
])
}
let!
(
:two_projects_runner
)
{
create
(
:ci_runner
,
:project
,
description:
'Two projects runner'
,
projects:
[
project
,
project2
])
let!
(
:two_projects_runner
)
{
create
(
:ci_runner
,
:project
,
description:
'Two projects runner'
,
projects:
[
project
,
project2
])
}
let!
(
:group_runner
)
{
create
(
:ci_runner
,
:group
,
description:
'Group runner'
,
groups:
[
group
])
}
before
do
...
...
spec/services/ci/update_build_queue_service_spec.rb
View file @
d9251f2e
...
...
@@ -15,6 +15,9 @@ describe Ci::UpdateBuildQueueService do
end
context
'when there is no runner that can pick build'
do
let
(
:another_project
)
{
create
(
:project
)
}
let
(
:runner
)
{
create
(
:ci_runner
,
:project
,
projects:
[
another_project
])
}
it
'does not tick runner queue value'
do
expect
{
subject
.
execute
(
build
)
}.
not_to
change
{
runner
.
ensure_runner_queue_value
}
end
...
...
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