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
cd9fb6e7
Commit
cd9fb6e7
authored
Nov 03, 2021
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid retrying controller tests due to data not being reset
parent
20a19ef2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
spec/spec_helper.rb
spec/spec_helper.rb
+8
-0
No files found.
spec/spec_helper.rb
View file @
cd9fb6e7
...
...
@@ -197,6 +197,14 @@ RSpec.configure do |config|
if
ENV
[
'CI'
]
||
ENV
[
'RETRIES'
]
# This includes the first try, i.e. tests will be run 4 times before failing.
config
.
default_retry_count
=
ENV
.
fetch
(
'RETRIES'
,
3
).
to_i
+
1
# 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
)
end
config
.
exceptions_to_hard_fail
=
[
DeprecationToolkitEnv
::
DeprecationBehaviors
::
SelectiveRaise
::
RaiseDisallowedDeprecation
]
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