From bbc7418d519260c4b9827546a0bf822db1c78b1b Mon Sep 17 00:00:00 2001 From: "nathaniel.doef" Date: Wed, 8 Feb 2023 02:19:34 -0500 Subject: [PATCH] maintenance pass --- .../test/java/ca/uhn/fhir/jpa/bulk/BulkDataExportTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/bulk/BulkDataExportTest.java b/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/bulk/BulkDataExportTest.java index 33c53eb1b90..33c875c8178 100644 --- a/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/bulk/BulkDataExportTest.java +++ b/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/bulk/BulkDataExportTest.java @@ -1,5 +1,6 @@ package ca.uhn.fhir.jpa.bulk; +import ca.uhn.fhir.batch2.api.IJobMaintenanceService; import ca.uhn.fhir.jpa.api.config.DaoConfig; import ca.uhn.fhir.jpa.api.model.BulkExportJobResults; import ca.uhn.fhir.jpa.api.svc.IBatch2JobRunner; @@ -74,6 +75,9 @@ public class BulkDataExportTest extends BaseResourceProviderR4Test { @Autowired private IBatch2JobRunner myJobRunner; + @Autowired + private IJobMaintenanceService myJobMaintenanceService; + @AfterEach void afterEach() { myDaoConfig.setIndexMissingFields(DaoConfig.IndexEnabledEnum.DISABLED); @@ -707,6 +711,9 @@ public class BulkDataExportTest extends BaseResourceProviderR4Test { } private void verifyReport(List theContainedList, List theExcludedList, Batch2JobStartResponse theStartResponse) { + + myJobMaintenanceService.triggerMaintenancePass(); + await() .atMost(300, TimeUnit.SECONDS) .until(() -> myJobRunner.getJobInfo(theStartResponse.getJobId()).getReport() != null);