Skip to content

Commit

Permalink
Fix testing race condition
Browse files Browse the repository at this point in the history
This fixes a race condition issue in the tests where we need to make
sure objects are defined before trying to use them.
  • Loading branch information
thomasleese committed May 22, 2024
1 parent 99376eb commit bae04e5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,15 @@
end

context "with multiple application forms" do
let(:application_form_1) do
let!(:application_form_1) do
create(
:application_form,
:submitted,
submitted_at: Date.new(2020, 1, 1),
)
end
let(:application_form_2) do

let!(:application_form_2) do
create(
:application_form,
:submitted,
Expand Down

0 comments on commit bae04e5

Please sign in to comment.