Commit 8830ce30 authored by Valery Sizov's avatar Valery Sizov

Address code review comments

parent cf7cf8b6
......@@ -247,20 +247,6 @@ describe Geo::RepositorySyncService do
subject.execute
end
context 'no repository' do
let(:project) { create(:project) }
it 'does not raise an error' do
project_registry = create(
:geo_project_registry,
project: project,
force_to_redownload_repository: true
)
subject.execute
end
end
it 'successfully redownloads the repository even if the retry time exceeds max value' do
timestamp = Time.now.utc
registry = create(
......@@ -279,6 +265,20 @@ describe Geo::RepositorySyncService do
registry.reload
expect(registry.repository_retry_at).to be_nil
end
context 'no repository' do
let(:project) { create(:project) }
it 'does not raise an error' do
create(
:geo_project_registry,
project: project,
force_to_redownload_repository: true
)
subject.execute
end
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment