mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
DEV: fix flaky specs in ExportUserArchive (#12095)
This commit is contained in:
parent
277eae97e1
commit
2aac657da7
@ -368,6 +368,7 @@ describe Jobs::ExportUserArchive do
|
||||
|
||||
data, csv_out = make_component_csv
|
||||
expect(data.length).to eq(4)
|
||||
data.sort_by! { |row| row['post_id'].to_i }
|
||||
|
||||
expect(data[0]['post_id']).to eq(other_post.id.to_s)
|
||||
expect(data[0]['flag_type']).to eq('notify_moderators')
|
||||
@ -398,6 +399,7 @@ describe Jobs::ExportUserArchive do
|
||||
|
||||
data, csv_out = make_component_csv
|
||||
expect(data.length).to eq(2)
|
||||
data.sort_by! { |row| row['post_id'].to_i }
|
||||
|
||||
expect(data[0]['post_id']).to eq(other_post.id.to_s)
|
||||
expect(data[1]['post_id']).to eq(post3.id.to_s)
|
||||
|
Loading…
Reference in New Issue
Block a user