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
d04122e3
Commit
d04122e3
authored
Feb 15, 2020
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky spec stop_environments_service_spec
This commit fixes the flaky spec failure
parent
90fd52b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
spec/services/ci/stop_environments_service_spec.rb
spec/services/ci/stop_environments_service_spec.rb
+6
-4
No files found.
spec/services/ci/stop_environments_service_spec.rb
View file @
d04122e3
...
@@ -217,18 +217,20 @@ describe Ci::StopEnvironmentsService do
...
@@ -217,18 +217,20 @@ describe Ci::StopEnvironmentsService do
context
'when user does not have a permission to play the stop action'
do
context
'when user does not have a permission to play the stop action'
do
before
do
before
do
Ci
::
Build
.
find_by_ref
(
'review/feature-2'
).
update_column
(
:user_id
,
nil
)
project
.
team
.
truncate
end
end
it
'tracks the exception'
do
it
'tracks the exception'
do
deployable
=
Ci
::
Build
.
find_by_ref
(
'review/feature-2'
)
expect
(
Gitlab
::
ErrorTracking
)
expect
(
Gitlab
::
ErrorTracking
)
.
to
receive
(
:track_error
)
.
to
receive
(
:track_error
)
.
with
(
Gitlab
::
Access
::
AccessDeniedError
,
deployable_id:
deployable
.
id
).
on
ce
.
with
(
Gitlab
::
Access
::
AccessDeniedError
,
anything
).
twi
ce
subject
subject
end
end
after
do
project
.
add_developer
(
user
)
end
end
end
end
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