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
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
spec/services/users/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