Tidy await

This commit is contained in:
Tadgh 2020-06-25 11:42:17 -07:00
parent ed155e7657
commit 21567fdc43
1 changed files with 1 additions and 4 deletions

View File

@ -304,7 +304,6 @@ public class BulkDataExportSvcImplR4Test extends BaseJpaR4Test {
assertEquals(jobDetails1.getJobId(), jobDetails2.getJobId());
}
@Test
public void testBatchJobSubmitsAndRuns() throws Exception {
createResources();
@ -340,9 +339,7 @@ public class BulkDataExportSvcImplR4Test extends BaseJpaR4Test {
//Note that if the job is generated, and doesnt rely on an existed persisted BulkExportJobEntity, it will need to
//create one itself, which means that its jobUUID isnt known until it starts. to get around this, we move
public void awaitJobCompletion(JobExecution theJobExecution) throws InterruptedException {
await().until(() -> {
return theJobExecution.getStatus() == BatchStatus.COMPLETED;
});
await().until(() -> theJobExecution.getStatus() == BatchStatus.COMPLETED);
}
@Test