diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/bulk/BulkDataExportSvcImplR4Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/bulk/BulkDataExportSvcImplR4Test.java index b1cc427546e..58fd8a39f5b 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/bulk/BulkDataExportSvcImplR4Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/bulk/BulkDataExportSvcImplR4Test.java @@ -660,7 +660,7 @@ public class BulkDataExportSvcImplR4Test extends BaseJpaR4Test { IBulkDataExportSvc.JobInfo jobInfo = myBulkDataExportSvc.getJobInfoOrThrowResourceNotFound(jobDetails.getJobId()); assertThat(jobInfo.getStatus(), equalTo(BulkJobStatusEnum.COMPLETE)); - assertThat(jobInfo.getFiles().size(), equalTo(3)); + assertThat(jobInfo.getFiles().size(), equalTo(2)); assertThat(jobInfo.getFiles().get(0).getResourceType(), is(equalTo("Immunization"))); //Ensure that all immunizations refer to the golden resource via extension @@ -676,7 +676,7 @@ public class BulkDataExportSvcImplR4Test extends BaseJpaR4Test { //Ensure all patients are linked to their golden resource. assertThat(jobInfo.getFiles().get(1).getResourceType(), is(equalTo("Patient"))); - List patients = readBulkExportContentsIntoResources(getBinaryContents(jobInfo, 2), Patient.class); + List patients = readBulkExportContentsIntoResources(getBinaryContents(jobInfo, 1), Patient.class); patients.stream() .filter(patient -> patient.getIdElement().getIdPart().equals("PAT999")) .forEach(patient -> {