BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
bcbe5672
Commit
bcbe5672
authored
Dec 11, 2017
by
Brett Walker
Committed by
Nick Thomas
Dec 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small change to make less conflict with EE version
parent
d9f40fdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
keys_count_service_spec.rb
spec/services/users/keys_count_service_spec.rb
+4
-6
No files found.
spec/services/users/keys_count_service_spec.rb
View file @
bcbe5672
...
...
@@ -15,14 +15,12 @@ describe Users::KeysCountService, :use_clean_rails_memory_store_caching do
expect
(
service
.
count
).
to
eq
(
1
)
end
it
'caches the number of keys in Redis'
do
it
'caches the number of keys in Redis'
,
:request_store
do
service
.
delete_cache
control_count
=
ActiveRecord
::
QueryRecorder
.
new
{
service
.
count
}.
count
service
.
delete_cache
recorder
=
ActiveRecord
::
QueryRecorder
.
new
do
2
.
times
{
service
.
count
}
end
expect
(
recorder
.
count
).
to
eq
(
1
)
expect
{
2
.
times
{
service
.
count
}
}.
not_to
exceed_query_limit
(
control_count
)
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