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
def1cd28
Commit
def1cd28
authored
Jun 24, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved spec
parent
9d2aac82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
spec/models/remote_mirror_spec.rb
spec/models/remote_mirror_spec.rb
+11
-9
No files found.
spec/models/remote_mirror_spec.rb
View file @
def1cd28
...
...
@@ -71,15 +71,6 @@ describe RemoteMirror do
expect
(
repo
.
config
[
"remote.
#{
mirror
.
ref_name
}
.url"
]).
to
eq
(
'http://foo:baz@test.com'
)
end
it
'should still be picked up by the worker if is stuck'
do
mirror
=
create_mirror
(
url:
'http://cantbeblank'
,
update_status:
'started'
,
last_update_at:
nil
,
updated_at:
25
.
hours
.
ago
)
expect
(
RemoteMirror
.
stuck
.
last
).
to
eq
(
mirror
)
end
end
end
...
...
@@ -101,6 +92,17 @@ describe RemoteMirror do
end
end
context
'stuck mirrors'
do
it
'includes mirrors stuck in started with no last_update_at set'
do
mirror
=
create_mirror
(
url:
'http://cantbeblank'
,
update_status:
'started'
,
last_update_at:
nil
,
updated_at:
25
.
hours
.
ago
)
expect
(
RemoteMirror
.
stuck
.
last
).
to
eq
(
mirror
)
end
end
def
create_mirror
(
params
)
project
=
FactoryGirl
.
create
(
:project
)
project
.
remote_mirrors
.
create!
(
params
)
...
...
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