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

Address code review comments

parent cf7cf8b6
...@@ -247,20 +247,6 @@ describe Geo::RepositorySyncService do ...@@ -247,20 +247,6 @@ describe Geo::RepositorySyncService do
subject.execute subject.execute
end 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 it 'successfully redownloads the repository even if the retry time exceeds max value' do
timestamp = Time.now.utc timestamp = Time.now.utc
registry = create( registry = create(
...@@ -279,6 +265,20 @@ describe Geo::RepositorySyncService do ...@@ -279,6 +265,20 @@ describe Geo::RepositorySyncService do
registry.reload registry.reload
expect(registry.repository_retry_at).to be_nil expect(registry.repository_retry_at).to be_nil
end 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 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