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
a549f414
Commit
a549f414
authored
Oct 04, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary `and_return calls` on daemon spec
parent
251821ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/lib/gitlab/geo/log_cursor/daemon_spec.rb
spec/lib/gitlab/geo/log_cursor/daemon_spec.rb
+4
-4
No files found.
spec/lib/gitlab/geo/log_cursor/daemon_spec.rb
View file @
a549f414
...
...
@@ -4,7 +4,7 @@ describe Gitlab::Geo::LogCursor::Daemon, :postgresql do
include
::
EE
::
GeoHelpers
describe
'#run!'
do
set
(
:geo_node
)
{
create
(
:geo_node
)
}
set
(
:geo_node
)
{
create
(
:geo_node
,
:primary
)
}
before
do
stub_current_geo_node
(
geo_node
)
...
...
@@ -63,7 +63,7 @@ describe Gitlab::Geo::LogCursor::Daemon, :postgresql do
it
'performs Geo::ProjectSyncWorker'
do
expect
(
Geo
::
ProjectSyncWorker
).
to
receive
(
:perform_async
)
.
with
(
project
.
id
,
anything
).
once
.
and_return
(
spy
)
.
with
(
project
.
id
,
anything
).
once
subject
.
run!
end
...
...
@@ -103,7 +103,7 @@ describe Gitlab::Geo::LogCursor::Daemon, :postgresql do
it
'performs Geo::ProjectSyncWorker'
do
expect
(
Geo
::
ProjectSyncWorker
).
to
receive
(
:perform_async
)
.
with
(
project
.
id
,
anything
).
once
.
and_return
(
spy
)
.
with
(
project
.
id
,
anything
).
once
subject
.
run!
end
...
...
@@ -171,7 +171,7 @@ describe Gitlab::Geo::LogCursor::Daemon, :postgresql do
before
do
allow
(
subject
).
to
receive
(
:exit?
).
and_return
(
false
,
true
)
allow
(
Geo
::
ProjectSyncWorker
).
to
receive
(
:perform_async
)
.
and_return
(
spy
)
allow
(
Geo
::
ProjectSyncWorker
).
to
receive
(
:perform_async
)
end
it
'replays events for projects that belong to selected namespaces to replicate'
do
...
...
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