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
60a22a59
Commit
60a22a59
authored
May 08, 2018
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix specs and comments changing push -> sync/fetch
parent
ad2d0041
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ee/spec/models/geo/project_registry_spec.rb
ee/spec/models/geo/project_registry_spec.rb
+3
-3
ee/spec/services/geo/project_housekeeping_service_spec.rb
ee/spec/services/geo/project_housekeeping_service_spec.rb
+3
-3
No files found.
ee/spec/models/geo/project_registry_spec.rb
View file @
60a22a59
...
...
@@ -224,7 +224,7 @@ describe Geo::ProjectRegistry do
end
context
'with a number of syncs'
do
it
'returns the number of
pushe
s'
do
it
'returns the number of
sync
s'
do
2
.
times
{
Geo
::
ProjectHousekeepingService
.
new
(
project
).
increment!
}
expect
(
subject
.
syncs_since_gc
).
to
eq
(
2
)
...
...
@@ -233,7 +233,7 @@ describe Geo::ProjectRegistry do
end
describe
'#increment_syncs_since_gc'
do
it
'increments the number of
pushe
s since the last GC'
do
it
'increments the number of
sync
s since the last GC'
do
3
.
times
{
subject
.
increment_syncs_since_gc!
}
expect
(
subject
.
syncs_since_gc
).
to
eq
(
3
)
...
...
@@ -241,7 +241,7 @@ describe Geo::ProjectRegistry do
end
describe
'#reset_syncs_since_gc'
do
it
'resets the number of
pushe
s since the last GC'
do
it
'resets the number of
sync
s since the last GC'
do
3
.
times
{
subject
.
increment_syncs_since_gc!
}
subject
.
reset_syncs_since_gc!
...
...
ee/spec/services/geo/project_housekeeping_service_spec.rb
View file @
60a22a59
...
...
@@ -45,13 +45,13 @@ describe Geo::ProjectHousekeepingService do
allow
(
service
).
to
receive
(
:lease_key
).
and_return
(
:the_lease_key
)
allow
(
service
).
to
receive
(
:try_obtain_lease
).
and_return
(
:the_uuid
)
# At
pus
h 200
# At
fetc
h 200
expect
(
GitGarbageCollectWorker
).
to
receive
(
:perform_async
).
with
(
project
.
id
,
:gc
,
:the_lease_key
,
:the_uuid
)
.
exactly
(
1
).
times
# At
pus
h 50, 100, 150
# At
fetc
h 50, 100, 150
expect
(
GitGarbageCollectWorker
).
to
receive
(
:perform_async
).
with
(
project
.
id
,
:full_repack
,
:the_lease_key
,
:the_uuid
)
.
exactly
(
3
).
times
# At
pus
h 10, 20, ... (except those above)
# At
fetc
h 10, 20, ... (except those above)
expect
(
GitGarbageCollectWorker
).
to
receive
(
:perform_async
).
with
(
project
.
id
,
:incremental_repack
,
:the_lease_key
,
:the_uuid
)
.
exactly
(
16
).
times
...
...
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