Commit 8f24dfaa authored by Shinya Maeda's avatar Shinya Maeda

Fix static analysis

parent ccc60ddd
......@@ -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
......@@ -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
......
......@@ -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
......@@ -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
......
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