diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-05-28 15:30:38 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-06-07 17:45:39 +0900 |
commit | 8f24dfaac70bc564973bd81745b80421f1a3e1af (patch) | |
tree | e817c5eeedc1eec1c89ed482a9ce365f65c950f8 | |
parent | ccc60ddd6076f997f63f46cad814e4ac9e4cbdfc (diff) | |
download | gitlab-ce-8f24dfaac70bc564973bd81745b80421f1a3e1af.tar.gz |
Fix static analysis
-rw-r--r-- | spec/lib/gitlab/background_migration/migrate_legacy_artifacts_spec.rb | 4 | ||||
-rw-r--r-- | spec/migrations/migrate_legacy_artifacts_to_job_artifacts_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/background_migration/migrate_legacy_artifacts_spec.rb b/spec/lib/gitlab/background_migration/migrate_legacy_artifacts_spec.rb index f87cc15e5e4..16947f4005b 100644 --- a/spec/lib/gitlab/background_migration/migrate_legacy_artifacts_spec.rb +++ b/spec/lib/gitlab/background_migration/migrate_legacy_artifacts_spec.rb @@ -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 diff --git a/spec/migrations/migrate_legacy_artifacts_to_job_artifacts_spec.rb b/spec/migrations/migrate_legacy_artifacts_to_job_artifacts_spec.rb index 0239a0503b2..06326f7ee05 100644 --- a/spec/migrations/migrate_legacy_artifacts_to_job_artifacts_spec.rb +++ b/spec/migrations/migrate_legacy_artifacts_to_job_artifacts_spec.rb @@ -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 |