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
5a493883
Commit
5a493883
authored
Nov 29, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix wiki spec and bad merge
parent
7a99a7fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
spec/services/geo/repository_sync_service_spec.rb
spec/services/geo/repository_sync_service_spec.rb
+4
-4
spec/services/geo/wiki_sync_service_spec.rb
spec/services/geo/wiki_sync_service_spec.rb
+5
-1
No files found.
spec/services/geo/repository_sync_service_spec.rb
View file @
5a493883
...
...
@@ -165,6 +165,10 @@ describe Geo::RepositorySyncService do
it
'resets repository_retry_at'
do
expect
(
registry
.
repository_retry_at
).
to
be_present
end
it
'sets last_repository_sync_failure'
do
expect
(
registry
.
last_repository_sync_failure
).
to
eq
(
'Error syncing repository: shell error'
)
end
end
end
...
...
@@ -223,10 +227,6 @@ describe Geo::RepositorySyncService do
# of range" in the first update to the project registry.
registry
.
reload
expect
(
registry
.
repository_retry_at
).
to
be_nil
it
'sets last_repository_sync_failure'
do
expect
(
registry
.
last_repository_sync_failure
).
to
eq
(
'Error syncing repository: shell error'
)
end
end
end
...
...
spec/services/geo/wiki_sync_service_spec.rb
View file @
5a493883
...
...
@@ -117,7 +117,7 @@ RSpec.describe Geo::WikiSyncService do
let
(
:registry
)
{
Geo
::
ProjectRegistry
.
find_by
(
project_id:
project
.
id
)
}
before
do
allow
(
repository
).
to
receive
(
:fetch_as_mirror
).
with
(
url_to_repo
,
forced:
true
)
{
raise
Gitlab
::
Shell
::
Error
}
allow
(
repository
).
to
receive
(
:fetch_as_mirror
).
with
(
url_to_repo
,
forced:
true
)
{
raise
Gitlab
::
Shell
::
Error
,
'shell error'
}
subject
.
execute
end
...
...
@@ -129,6 +129,10 @@ RSpec.describe Geo::WikiSyncService do
it
'resets last_wiki_successful_sync_at'
do
expect
(
registry
.
last_wiki_successful_sync_at
).
to
be_nil
end
it
'sets last_wiki_sync_failure'
do
expect
(
registry
.
last_wiki_sync_failure
).
to
eq
(
'Error syncing wiki repository: shell error'
)
end
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