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
630af4a5
Commit
630af4a5
authored
May 20, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leaky constant in sidekiq middleware client metric specs
parent
9ab9113e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/leaky-constant-fix-29.yml
changelogs/unreleased/leaky-constant-fix-29.yml
+5
-0
spec/lib/gitlab/sidekiq_middleware/client_metrics_spec.rb
spec/lib/gitlab/sidekiq_middleware/client_metrics_spec.rb
+5
-2
No files found.
.rubocop.yml
View file @
630af4a5
...
@@ -368,7 +368,6 @@ RSpec/LeakyConstantDeclaration:
...
@@ -368,7 +368,6 @@ RSpec/LeakyConstantDeclaration:
-
'
spec/lib/gitlab/no_cache_headers_spec.rb'
-
'
spec/lib/gitlab/no_cache_headers_spec.rb'
-
'
spec/lib/gitlab/path_regex_spec.rb'
-
'
spec/lib/gitlab/path_regex_spec.rb'
-
'
spec/lib/gitlab/quick_actions/dsl_spec.rb'
-
'
spec/lib/gitlab/quick_actions/dsl_spec.rb'
-
'
spec/lib/gitlab/sidekiq_middleware/client_metrics_spec.rb'
-
'
spec/lib/gitlab/sidekiq_middleware/server_metrics_spec.rb'
-
'
spec/lib/gitlab/sidekiq_middleware/server_metrics_spec.rb'
-
'
spec/lib/gitlab/view/presenter/factory_spec.rb'
-
'
spec/lib/gitlab/view/presenter/factory_spec.rb'
-
'
spec/lib/marginalia_spec.rb'
-
'
spec/lib/marginalia_spec.rb'
...
...
changelogs/unreleased/leaky-constant-fix-29.yml
0 → 100644
View file @
630af4a5
---
title
:
Fix leaky constant issue in sidekiq middleware client metric spec
merge_request
:
32108
author
:
Rajendra Kadam
type
:
fixed
spec/lib/gitlab/sidekiq_middleware/client_metrics_spec.rb
View file @
630af4a5
...
@@ -47,8 +47,11 @@ describe Gitlab::SidekiqMiddleware::ClientMetrics do
...
@@ -47,8 +47,11 @@ describe Gitlab::SidekiqMiddleware::ClientMetrics do
end
end
context
"when workers are not attributed"
do
context
"when workers are not attributed"
do
class
TestNonAttributedWorker
before
do
include
Sidekiq
::
Worker
stub_const
(
'TestNonAttributedWorker'
,
Class
.
new
)
TestNonAttributedWorker
.
class_eval
do
include
Sidekiq
::
Worker
end
end
end
it_behaves_like
"a metrics client middleware"
do
it_behaves_like
"a metrics client middleware"
do
...
...
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