Commit 9ae6dc68 authored by Michael Kozono's avatar Michael Kozono

Merge branch 'remove-duplicated-tests' into 'master'

Change Geo::FileDownloadWorker for failed-sync to test the correct scenario

See merge request gitlab-org/gitlab!28409
parents 605cebf5 0a708c37
......@@ -420,4 +420,3 @@ RSpec/RepeatedExample:
- 'ee/spec/models/group_spec.rb'
- 'ee/spec/services/boards/lists/update_service_spec.rb'
- 'ee/spec/services/geo/repository_verification_primary_service_spec.rb'
- 'ee/spec/workers/geo/file_download_dispatch_worker_spec.rb'
......@@ -376,7 +376,7 @@ describe Geo::FileDownloadDispatchWorker, :geo, :geo_fdw, :use_sql_query_cache_f
end
it 'performs Geo::FileDownloadWorker for failed-sync job artifacts' do
registry = create(:geo_job_artifact_registry, :with_artifact, :never_synced)
registry = create(:geo_job_artifact_registry, :with_artifact, :failed)
expect(Geo::FileDownloadWorker).to receive(:perform_async)
.with('job_artifact', registry.artifact_id).once.and_return(spy)
......
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