Update refererence server to avoid long calls

This commit is contained in:
jamesagnew 2018-09-17 08:29:47 -04:00
parent a5de3f2ffd
commit 5d60b90b81
3 changed files with 4 additions and 2 deletions

View File

@ -82,6 +82,7 @@ public class TestDstu2Config extends BaseJavaConfigDstu2 {
} }
retVal.setUsername(myDbUsername); retVal.setUsername(myDbUsername);
retVal.setPassword(myDbPassword); retVal.setPassword(myDbPassword);
retVal.setDefaultQueryTimeout(20);
return retVal; return retVal;
} }

View File

@ -88,6 +88,7 @@ public class TestDstu3Config extends BaseJavaConfigDstu3 {
} }
retVal.setUsername(myDbUsername); retVal.setUsername(myDbUsername);
retVal.setPassword(myDbPassword); retVal.setPassword(myDbPassword);
retVal.setDefaultQueryTimeout(20);
return retVal; return retVal;
} }

View File

@ -12,7 +12,6 @@ import ca.uhn.fhirtest.interceptor.PublicSecurityInterceptor;
import org.apache.commons.dbcp2.BasicDataSource; import org.apache.commons.dbcp2.BasicDataSource;
import org.apache.commons.lang3.time.DateUtils; import org.apache.commons.lang3.time.DateUtils;
import org.hibernate.dialect.PostgreSQL94Dialect; import org.hibernate.dialect.PostgreSQL94Dialect;
import org.hibernate.jpa.HibernatePersistenceProvider;
import org.springframework.beans.factory.annotation.Autowire; import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
@ -33,7 +32,7 @@ import java.util.Properties;
@EnableTransactionManagement() @EnableTransactionManagement()
public class TestR4Config extends BaseJavaConfigR4 { public class TestR4Config extends BaseJavaConfigR4 {
public static final String FHIR_DB_USERNAME = "${fhir.db.username}"; public static final String FHIR_DB_USERNAME = "${fhir.db.username}";
public static final String FHIR_DB_PASSWORD = "${fhir.db.password}"; public static final String FHIR_DB_PASSWORD = "${fhir.db.password}";
public static final String FHIR_LUCENE_LOCATION_R4 = "${fhir.lucene.location.r4}"; public static final String FHIR_LUCENE_LOCATION_R4 = "${fhir.lucene.location.r4}";
public static final Integer COUNT_SEARCH_RESULTS_UP_TO = 50000; public static final Integer COUNT_SEARCH_RESULTS_UP_TO = 50000;
@ -74,6 +73,7 @@ public class TestR4Config extends BaseJavaConfigR4 {
} }
retVal.setUsername(myDbUsername); retVal.setUsername(myDbUsername);
retVal.setPassword(myDbPassword); retVal.setPassword(myDbPassword);
retVal.setDefaultQueryTimeout(20);
return retVal; return retVal;
} }