wip
This commit is contained in:
parent
1d9641a736
commit
ed155e7657
|
@ -25,6 +25,7 @@ import org.hl7.fhir.r4.model.Patient;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.batch.core.BatchStatus;
|
||||||
import org.springframework.batch.core.Job;
|
import org.springframework.batch.core.Job;
|
||||||
import org.springframework.batch.core.JobExecution;
|
import org.springframework.batch.core.JobExecution;
|
||||||
import org.springframework.batch.core.JobInstance;
|
import org.springframework.batch.core.JobInstance;
|
||||||
|
@ -340,9 +341,7 @@ public class BulkDataExportSvcImplR4Test extends BaseJpaR4Test {
|
||||||
//create one itself, which means that its jobUUID isnt known until it starts. to get around this, we move
|
//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 {
|
public void awaitJobCompletion(JobExecution theJobExecution) throws InterruptedException {
|
||||||
await().until(() -> {
|
await().until(() -> {
|
||||||
//return theJobExecution.getStatus() == BatchStatus.COMPLETED;
|
return theJobExecution.getStatus() == BatchStatus.COMPLETED;
|
||||||
String jobUUID = theJobExecution.getExecutionContext().getString("jobUUID");
|
|
||||||
return myBulkDataExportSvc.getJobInfoOrThrowResourceNotFound(jobUUID).getStatus() == BulkJobStatusEnum.COMPLETE;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class TestR4Config extends BaseJavaConfigR4 {
|
||||||
* starvation
|
* starvation
|
||||||
*/
|
*/
|
||||||
if (ourMaxThreads == null) {
|
if (ourMaxThreads == null) {
|
||||||
ourMaxThreads = (int) (Math.random() * 6.0) + 2;
|
ourMaxThreads = (int) (Math.random() * 6.0) + 3;
|
||||||
|
|
||||||
if ("true".equals(System.getProperty("single_db_connection"))) {
|
if ("true".equals(System.getProperty("single_db_connection"))) {
|
||||||
ourMaxThreads = 1;
|
ourMaxThreads = 1;
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class TestJpaConfig {
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
@Primary
|
@Primary
|
||||||
public JpaTransactionManager hapiransactionManager(EntityManagerFactory entityManagerFactory) {
|
public JpaTransactionManager hapiTransactionManager(EntityManagerFactory entityManagerFactory) {
|
||||||
JpaTransactionManager retVal = new JpaTransactionManager();
|
JpaTransactionManager retVal = new JpaTransactionManager();
|
||||||
retVal.setEntityManagerFactory(entityManagerFactory);
|
retVal.setEntityManagerFactory(entityManagerFactory);
|
||||||
return retVal;
|
return retVal;
|
||||||
|
|
Loading…
Reference in New Issue