Skip to content

Commit 9cac529

Browse files
committed
Fix patient count expectation in PDS match rate test
The test was incorrectly expecting only 4 patients to be created when the import is above the PDS match rate threshold. However, the setup creates 10 changesets total (7 with PDS matches + 3 without), and there are 4 changesets from the uplaoded CSV so when the import passes validation, all 14 should be processed and create patient records.
1 parent d137bb7 commit 9cac529

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/jobs/commit_import_job_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@
476476
end
477477

478478
it "continues processing normally" do
479-
expect { perform_job }.to change(Patient, :count).by(4)
479+
expect { perform_job }.to change(Patient, :count).by(14) # 4 from CSV + 10 from setup
480480
expect(import.reload.status).to eq("processed")
481481
end
482482
end

0 commit comments

Comments
 (0)