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
1c040147
Commit
1c040147
authored
Nov 16, 2021
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set retry metadata instead of running with around
parent
fff3d03e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/spec_helper.rb
spec/spec_helper.rb
+2
-2
No files found.
spec/spec_helper.rb
View file @
1c040147
...
...
@@ -201,8 +201,8 @@ RSpec.configure do |config|
# Do not retry controller tests because rspec-retry cannot properly
# reset the controller which may contain data from last attempt. See
# https://gitlab.com/gitlab-org/gitlab/-/merge_requests/73360
config
.
around
(
:each
,
type: :controller
)
do
|
example
|
example
.
run_with_retry
(
retry:
1
)
config
.
prepend_before
(
:each
,
type: :controller
)
do
|
example
|
example
.
metadata
[
:retry
]
=
1
end
config
.
exceptions_to_hard_fail
=
[
DeprecationToolkitEnv
::
DeprecationBehaviors
::
SelectiveRaise
::
RaiseDisallowedDeprecation
]
...
...
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