Skip to content

Commit

Permalink
Trying to track down a couple of CI-only test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
hadleynet committed Dec 21, 2021
1 parent 0fac54b commit af4a81e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,9 @@ public void resolveCodesInImagingStudy() throws Exception {
ValueSetCodeResolver valueSetCodeResolver = new ValueSetCodeResolver(person);
Person resolvedPerson = valueSetCodeResolver.resolve();

assertEquals(2, resolvedPerson.record.encounters.size());
Encounter resolvedEncounter = resolvedPerson.record.encounters.get(1);
// assertEquals(2, resolvedPerson.record.encounters.size());
Encounter resolvedEncounter = resolvedPerson.record.encounters.get(
resolvedPerson.record.encounters.size() - 1);
assertEquals(1, resolvedEncounter.imagingStudies.size());
ImagingStudy resolvedImagingStudy = resolvedEncounter.imagingStudies.get(0);

Expand Down Expand Up @@ -275,7 +276,7 @@ public void handlesNullCodesInImagingStudy() throws Exception {
State mri = module.getState("Knee_MRI");
assertTrue(mri.process(person, time));

Encounter imagingEncounter = person.record.encounters.get(1);
Encounter imagingEncounter = person.record.encounters.get(person.record.encounters.size() - 1);
imagingEncounter.imagingStudies.get(0).series.get(0).instances.set(0, null);
ValueSetCodeResolver valueSetCodeResolver = new ValueSetCodeResolver(person);
valueSetCodeResolver.resolve();
Expand Down

0 comments on commit af4a81e

Please sign in to comment.