Skip to content

Commit

Permalink
Merge pull request #5570 from samvera/flaky_valk_ingest_job_spec
Browse files Browse the repository at this point in the history
Fix flaky file ordering in spec for ValkyrieIngestJob
  • Loading branch information
cjcolvar authored Mar 24, 2022
2 parents bb8d741 + 2e2e714 commit 4c19640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/jobs/valkyrie_ingest_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
described_class.perform_now(thumbnail_upload, pcdm_use: Hyrax::FileMetadata::Use::THUMBNAIL)

reloaded_file_set = Hyrax.query_service.find_by(id: file_set.id)
expect(reloaded_file_set)
.to have_attached_files(be_original_file, be_thumbnail_file)
files = Hyrax.custom_queries.find_files(file_set: reloaded_file_set)
expect(files).to contain_exactly(be_original_file, be_thumbnail_file)
expect(reloaded_file_set.title).to eq ["image.png"]
expect(reloaded_file_set.label).to eq "image.png"
expect(reloaded_file_set.file_ids)
Expand Down

0 comments on commit 4c19640

Please sign in to comment.