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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
788bf248
Commit
788bf248
authored
Mar 08, 2022
by
Allison Browne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add status to test names
parent
e61ae8ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/lib/gitlab/ci/pipeline/chain/cancel_pending_pipelines_spec.rb
...gitlab/ci/pipeline/chain/cancel_pending_pipelines_spec.rb
+2
-2
No files found.
spec/lib/gitlab/ci/pipeline/chain/cancel_pending_pipelines_spec.rb
View file @
788bf248
...
...
@@ -110,7 +110,7 @@ RSpec.describe Gitlab::Ci::Pipeline::Chain::CancelPendingPipelines do
context
'when the jobs are cancelable'
do
cancelable_not_started_statuses
=
Set
.
new
(
not_started_statuses
).
intersection
(
Ci
::
HasStatus
::
CANCELABLE_STATUSES
)
cancelable_not_started_statuses
.
each
do
|
status
|
it
'cancels all child pipeline builds'
do
it
"cancels all child pipeline builds when build status
#{
status
}
included"
do
# non-interruptible but non-started
create
(
:ci_build
,
status
.
to_sym
,
pipeline:
child_pipeline
)
...
...
@@ -126,7 +126,7 @@ RSpec.describe Gitlab::Ci::Pipeline::Chain::CancelPendingPipelines do
context
'when the jobs are not cancelable'
do
not_cancelable_not_started_statuses
=
not_started_statuses
-
Ci
::
HasStatus
::
CANCELABLE_STATUSES
not_cancelable_not_started_statuses
.
each
do
|
status
|
it
'does not cancel child pipeline builds'
do
it
"does not cancel child pipeline builds when build status
#{
status
}
included"
do
# non-interruptible but non-started
create
(
:ci_build
,
status
.
to_sym
,
pipeline:
child_pipeline
)
...
...
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