Commit cfaa4f2f authored by Stan Hu's avatar Stan Hu

Fix specs failing in ee/spec/finders/geo/job_artifact_registry_finder_spec.rb

parent 08d5284b
......@@ -72,7 +72,7 @@ describe Geo::JobArtifactRegistryFinder, :geo do
end
it 'ignores remote job artifacts' do
job_artifact_1.update!(file_store: ObjectStorage::Store::REMOTE)
job_artifact_1.update_column(:file_store, ObjectStorage::Store::REMOTE)
expect(subject.count_local_job_artifacts).to eq 3
end
......@@ -87,7 +87,7 @@ describe Geo::JobArtifactRegistryFinder, :geo do
end
it 'ignores remote job artifacts' do
job_artifact_1.update!(file_store: ObjectStorage::Store::REMOTE)
job_artifact_1.update_column(:file_store, ObjectStorage::Store::REMOTE)
expect(subject.count_local_job_artifacts).to eq 1
end
......@@ -185,7 +185,7 @@ describe Geo::JobArtifactRegistryFinder, :geo do
create(:geo_job_artifact_registry, artifact_id: job_artifact_1.id, success: false)
create(:geo_job_artifact_registry, artifact_id: job_artifact_2.id, success: false)
create(:geo_job_artifact_registry, artifact_id: job_artifact_3.id, success: false)
job_artifact_1.update!(file_store: ObjectStorage::Store::REMOTE)
job_artifact_1.update_column(:file_store, ObjectStorage::Store::REMOTE)
expect(subject.count_failed_job_artifacts).to eq 1
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