Skip to content

Commit

Permalink
Prevent flaky test by sorting report values [#4066]
Browse files Browse the repository at this point in the history
  • Loading branch information
awwaiid authored and dorner committed Mar 3, 2024
1 parent 7cce84b commit 04c399c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/services/reports/partner_info_report_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def partner_agency_counts
end

def partner_zipcodes_serviced
partner_agency_profiles.map(&:zips_served).uniq.join(', ')
partner_agency_profiles.map(&:zips_served).uniq.sort.join(', ')
end
end
end
2 changes: 1 addition & 1 deletion spec/services/reports/partner_info_report_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
entries: { "Agency Type: Career technical training" => 2,
"Agency Type: Education program" => 1,
"Number of Partner Agencies" => 3,
"Zip Codes Served" => "90210-1234, 12345, 09876-3564" },
"Zip Codes Served" => "09876-3564, 12345, 90210-1234" },
name: "Partner Agencies and Service Area"
})
end
Expand Down

0 comments on commit 04c399c

Please sign in to comment.