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
821dbff6
Commit
821dbff6
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 server metrics spec
parent
510a32e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/leaky-constant-fix-28.yml
changelogs/unreleased/leaky-constant-fix-28.yml
+5
-0
spec/lib/gitlab/sidekiq_middleware/server_metrics_spec.rb
spec/lib/gitlab/sidekiq_middleware/server_metrics_spec.rb
+6
-2
No files found.
.rubocop.yml
View file @
821dbff6
...
...
@@ -365,7 +365,6 @@ RSpec/LeakyConstantDeclaration:
-
'
spec/lib/gitlab/no_cache_headers_spec.rb'
-
'
spec/lib/gitlab/path_regex_spec.rb'
-
'
spec/lib/gitlab/quick_actions/dsl_spec.rb'
-
'
spec/lib/gitlab/sidekiq_middleware/server_metrics_spec.rb'
-
'
spec/lib/marginalia_spec.rb'
-
'
spec/mailers/notify_spec.rb'
-
'
spec/migrations/20191125114345_add_admin_mode_protected_path_spec.rb'
...
...
changelogs/unreleased/leaky-constant-fix-28.yml
0 → 100644
View file @
821dbff6
---
title
:
Fix leaky constant issue in sidekiq middleware server metric spec
merge_request
:
32104
author
:
Rajendra Kadam
type
:
fixed
spec/lib/gitlab/sidekiq_middleware/server_metrics_spec.rb
View file @
821dbff6
...
...
@@ -164,9 +164,13 @@ describe Gitlab::SidekiqMiddleware::ServerMetrics do
end
context
"when workers are not attributed"
do
class
TestNonAttributedWorker
include
Sidekiq
::
Worker
before
do
stub_const
(
'TestNonAttributedWorker'
,
Class
.
new
)
TestNonAttributedWorker
.
class_eval
do
include
Sidekiq
::
Worker
end
end
let
(
:worker
)
{
TestNonAttributedWorker
.
new
}
let
(
:labels
)
{
default_labels
.
merge
(
urgency:
""
)
}
...
...
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