Try to get travis building again

This commit is contained in:
James Agnew 2017-08-15 10:30:00 -04:00
parent f04b080d50
commit a8c91ce6f5
2 changed files with 10 additions and 0 deletions

View File

@ -20,6 +20,8 @@ import ca.uhn.fhir.rest.server.interceptor.RequestValidatingInterceptor;
import ca.uhn.fhir.validation.ResultSeverityEnum;
import net.ttddyy.dsproxy.support.ProxyDataSourceBuilder;
import static org.junit.Assert.fail;
@Configuration
@EnableTransactionManagement()
public class TestDstu3Config extends BaseJavaConfigDstu3 {
@ -46,6 +48,9 @@ public class TestDstu3Config extends BaseJavaConfigDstu3 {
} catch (Exception e) {
ourLog.error("Exceeded maximum wait for connection", e);
logGetConnectionStackTrace();
if ("true".equals(System.getProperty("ci"))) {
fail("Exceeded maximum wait for connection: "+ e.toString());
}
System.exit(1);
retVal = null;
}

View File

@ -20,6 +20,8 @@ import ca.uhn.fhir.rest.server.interceptor.RequestValidatingInterceptor;
import ca.uhn.fhir.validation.ResultSeverityEnum;
import net.ttddyy.dsproxy.support.ProxyDataSourceBuilder;
import static org.junit.Assert.fail;
@Configuration
@EnableTransactionManagement()
public class TestR4Config extends BaseJavaConfigR4 {
@ -46,6 +48,9 @@ public class TestR4Config extends BaseJavaConfigR4 {
} catch (Exception e) {
ourLog.error("Exceeded maximum wait for connection", e);
logGetConnectionStackTrace();
if ("true".equals(System.getProperty("ci"))) {
fail("Exceeded maximum wait for connection: " + e.toString());
}
System.exit(1);
retVal = null;
}