Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorntonMatthew committed Jun 18, 2024
1 parent 0ac1594 commit 497acda
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/jobs/hearings/receive_notification_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@
context ".perform" do
# create notification event record
let(:hearing_scheduled_event) do
create(:notification_event, event_type: Constants.EVENT_TYPE_FILTERS.hearing_scheduled,
email_template_id: "27bf814b-f065-4fc8-89af-ae1292db894e",
sms_template_id: "c2798da3-4c7a-43ed-bc16-599329eaf7cc")
NotificationEvent.find_by_event_type(Constants.EVENT_TYPE_FILTERS.hearing_scheduled) ||
create(:notification_event, event_type: Constants.EVENT_TYPE_FILTERS.hearing_scheduled,
email_template_id: "27bf814b-f065-4fc8-89af-ae1292db894e",
sms_template_id: "c2798da3-4c7a-43ed-bc16-599329eaf7cc")
end
# create notification record
let(:notification) do
Expand Down

0 comments on commit 497acda

Please sign in to comment.