Skip to content
Snippets Groups Projects
Commit 8f24dfaa authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Fix static analysis

parent ccc60ddd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -75,7 +75,7 @@ describe Gitlab::BackgroundMigration::MigrateLegacyArtifacts, :migration, schema
expect(jobs.pluck('artifacts_file_store, artifacts_metadata_store')).to eq([[nil, nil]])
 
described_class.new.perform(*range)
expect(job_artifacts.pluck('file_store')).to eq([1, 1])
end
end
Loading
Loading
@@ -87,7 +87,7 @@ describe Gitlab::BackgroundMigration::MigrateLegacyArtifacts, :migration, schema
 
it 'does not migrate' do
described_class.new.perform(*range)
expect(job_artifacts.pluck('id')).to eq([1])
end
end
Loading
Loading
Loading
Loading
@@ -26,7 +26,7 @@ describe MigrateLegacyArtifactsToJobArtifacts, :migration, :sidekiq do
Sidekiq::Testing.fake! do
Timecop.freeze do
migrate!
expect(migration_name).to be_scheduled_delayed_migration(5.minutes, 1, 1)
expect(BackgroundMigrationWorker.jobs.size).to eq 1
end
Loading
Loading
@@ -41,7 +41,7 @@ describe MigrateLegacyArtifactsToJobArtifacts, :migration, :sidekiq do
it 'does not schedule background migrations' do
Sidekiq::Testing.fake! do
migrate!
expect(BackgroundMigrationWorker.jobs.size).to eq 0
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment