shorten test

This commit is contained in:
Nathan Doef 2023-02-08 01:01:16 -05:00 committed by GitHub
parent 1e7a96a0fb
commit 70f49a2e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 9 deletions

View File

@ -625,8 +625,8 @@ public class BulkDataExportTest extends BaseResourceProviderR4Test {
} }
@Test @Test
public void testConsecutiveExportsWithLowMaxFileCapacity() { public void testBulkExportWithLowMaxFileCapacity() {
final int numPatients = 500; final int numPatients = 300;
myDaoConfig.setBulkExportFileMaximumCapacity(1); myDaoConfig.setBulkExportFileMaximumCapacity(1);
myDaoConfig.setIndexMissingFields(DaoConfig.IndexEnabledEnum.ENABLED); myDaoConfig.setIndexMissingFields(DaoConfig.IndexEnabledEnum.ENABLED);
@ -647,13 +647,9 @@ public class BulkDataExportTest extends BaseResourceProviderR4Test {
options.setExportStyle(BulkDataExportOptions.ExportStyle.PATIENT); options.setExportStyle(BulkDataExportOptions.ExportStyle.PATIENT);
options.setOutputFormat(Constants.CT_FHIR_NDJSON); options.setOutputFormat(Constants.CT_FHIR_NDJSON);
Batch2JobStartResponse job1 = myJobRunner.startNewJob(BulkExportUtils.createBulkExportJobParametersFromExportOptions(options)); Batch2JobStartResponse job = myJobRunner.startNewJob(BulkExportUtils.createBulkExportJobParametersFromExportOptions(options));
Batch2JobStartResponse job2 = myJobRunner.startNewJob(BulkExportUtils.createBulkExportJobParametersFromExportOptions(options)); myBatch2JobHelper.awaitJobCompletion(job.getJobId(), 60);
myBatch2JobHelper.awaitJobCompletion(job1.getJobId(), 60); verifyReport(patientIds, Collections.emptyList(), job);
myBatch2JobHelper.awaitJobCompletion(job2.getJobId(), 60);
verifyReport(patientIds, Collections.emptyList(), job1);
verifyReport(patientIds, Collections.emptyList(), job2);
} }
@ParameterizedTest @ParameterizedTest