Skip to content

Commit

Permalink
Fixes flaky test in spec/jobs/embargo_expiry_job_spec.rb.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwatson78 authored and jeremyf committed Jan 24, 2024
1 parent 31e6cde commit 9321a59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/jobs/embargo_expiry_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

describe '#records_with_expired_embargos' do
it 'returns all records with expired embargos' do
records = [work_with_expired_embargo.id, file_set_with_expired_embargo.id]
expect(described_class.new.records_with_expired_embargos.map(&:id)).to eq(records)
records = [work_with_expired_embargo.id.to_s, file_set_with_expired_embargo.id.to_s]
expect(described_class.new.records_with_expired_embargos.map { |r| r.id.to_s }).to match_array(records)
end
end

Expand Down

0 comments on commit 9321a59

Please sign in to comment.